From de6e408a664befb40aefd006511d9a0d0ac83b8f Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Wed, 24 Apr 2013 22:56:28 +0000 Subject: [PATCH] (qt) fix file-tree icon regression caused by r14000 for #5285; found & patched by rb07 --- qt/file-tree.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/file-tree.cc b/qt/file-tree.cc index cc32cea0a..d46f83963 100644 --- a/qt/file-tree.cc +++ b/qt/file-tree.cc @@ -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);