summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-01-07 23:25:18 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-01-07 23:25:18 -0600
commit398f6a122a0bb13043681d7f331e45d5ece56bdb (patch)
treedf6d1c9ea60fb2a46046981da64c3120f9c2b768
parentd5f119e4308938947666c1e921862b83a5476020 (diff)
downloadtdebase-398f6a122a0bb13043681d7f331e45d5ece56bdb.tar.gz
tdebase-398f6a122a0bb13043681d7f331e45d5ece56bdb.zip
Repair incorrectly show icon activation effect in List View when said effects are disabled
This closes Bug 335
-rw-r--r--konqueror/listview/konq_listviewwidget.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/konqueror/listview/konq_listviewwidget.cc b/konqueror/listview/konq_listviewwidget.cc
index e5094796e..7156d10b3 100644
--- a/konqueror/listview/konq_listviewwidget.cc
+++ b/konqueror/listview/konq_listviewwidget.cc
@@ -1009,9 +1009,12 @@ void KonqBaseListViewWidget::slotReturnPressed( TQListViewItem *_item )
// gather pixmap
TQPixmap *pix = new TQPixmap(*(_item->pixmap(0)));
- // call the icon effect
- KIconEffect::visualActivate(viewport(), rect, pix);
-
+ // call the icon effect if enabled
+ if (KGlobalSettings::showKonqIconActivationEffect() == true) {
+ KIconEffect::visualActivate(viewport(), rect, pix);
+ }
+
+ // clean up
delete(pix);
}
}