1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 16:24:02 +00:00

(qt) fix file-tree icon regression caused by r14000 for #5285; found & patched by rb07

This commit is contained in:
Jordan Lee 2013-04-24 22:56:28 +00:00
parent 877055e3ae
commit de6e408a66

View file

@ -813,7 +813,7 @@ FileTreeDelegate :: paint (QPainter * painter,
else else
{ {
QString name = index.data().toString(); 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); icon.paint (painter, iconArea, Qt::AlignCenter, QIcon::Normal, QIcon::On);