From b46a7c35c167304acc48675b979ca8b32bc3d293 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Wed, 27 Nov 2013 03:44:08 +0100 Subject: [PATCH] Fix crash on clear disabled iconview search line This resolves Bug 1735 --- tdeui/kiconviewsearchline.cpp | 3 +++ 1 file changed, 3 insertions(+) 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;