summaryrefslogtreecommitdiffstats
path: root/tdeui
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>2013-11-27 03:53:53 +0100
commitb46a7c35c167304acc48675b979ca8b32bc3d293 (patch)
tree45a4598d3492b348eb605782dae1e1d6abf778b1 /tdeui
parent5dc0b3542456394ce3ee429623864b2d549c112a (diff)
downloadtdelibs-b46a7c35c167304acc48675b979ca8b32bc3d293.tar.gz
tdelibs-b46a7c35c167304acc48675b979ca8b32bc3d293.zip
Fix crash on clear disabled iconview search line
This resolves Bug 1735
Diffstat (limited to 'tdeui')
-rw-r--r--tdeui/kiconviewsearchline.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tdeui/kiconviewsearchline.cpp b/tdeui/kiconviewsearchline.cpp
index 7082fc910..b319fc8ac 100644
--- a/tdeui/kiconviewsearchline.cpp
+++ b/tdeui/kiconviewsearchline.cpp
@@ -127,6 +127,9 @@ void TDEIconViewSearchLine::updateSearch( const TQString &s )
void TDEIconViewSearchLine::clear()
{
+ if( ! d->iconView )
+ return; // disabled
+
// Clear hidden list, give items back to TQIconView, if it still exists
TQIconViewItem *item = NULL;