From 398f6a122a0bb13043681d7f331e45d5ece56bdb Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sat, 7 Jan 2012 23:25:18 -0600 Subject: Repair incorrectly show icon activation effect in List View when said effects are disabled This closes Bug 335 --- konqueror/listview/konq_listviewwidget.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'konqueror/listview') 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); } } -- cgit v1.2.1