summaryrefslogtreecommitdiffstats
path: root/kdeui
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-11-27 03:44:08 +0100
committerSlávek Banko <slavek.banko@axis.cz>2015-12-23 02:22:33 +0100
commitdb1b69a2379ed31aba165b5bc113a5dd0e98c90f (patch)
treed997e90419094a1b195032195362aa9466c6161c /kdeui
parentd6a1b97ba85d2b912c0ba035fc3612b6219baaaf (diff)
downloadtdelibs-db1b69a2379ed31aba165b5bc113a5dd0e98c90f.tar.gz
tdelibs-db1b69a2379ed31aba165b5bc113a5dd0e98c90f.zip
Fix crash on clear disabled iconview search line
This resolves Bug 1735 (cherry picked from commit b46a7c35c167304acc48675b979ca8b32bc3d293)
Diffstat (limited to 'kdeui')
-rw-r--r--kdeui/kiconviewsearchline.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/kdeui/kiconviewsearchline.cpp b/kdeui/kiconviewsearchline.cpp
index aa97dc923..c2d865744 100644
--- a/kdeui/kiconviewsearchline.cpp
+++ b/kdeui/kiconviewsearchline.cpp
@@ -127,6 +127,9 @@ void KIconViewSearchLine::updateSearch( const TQString &s )
void KIconViewSearchLine::clear()
{
+ if( ! d->iconView )
+ return; // disabled
+
// Clear hidden list, give items back to TQIconView, if it still exists
TQIconViewItem *item = NULL;