]> granicus.if.org Git - transmission/commitdiff
(qt) fix file-tree icon regression caused by r14000 for #5285; found & patched by...
authorJordan Lee <jordan@transmissionbt.com>
Wed, 24 Apr 2013 22:56:28 +0000 (22:56 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Wed, 24 Apr 2013 22:56:28 +0000 (22:56 +0000)
qt/file-tree.cc

index cc32cea0a05775af62d047a1f32a38f7e2bfd715..d46f8396392cc18f0c1a9c614030e54a8cda7ea8 100644 (file)
@@ -813,7 +813,7 @@ FileTreeDelegate :: paint (QPainter                    * painter,
       else
         {
           QString name = index.data().toString();
-          icon = Utils :: guessMimeIcon (name.left(name.lastIndexOf(" (")));
+          icon = Utils :: guessMimeIcon (name);
         }
       icon.paint (painter, iconArea, Qt::AlignCenter, QIcon::Normal, QIcon::On);