summaryrefslogtreecommitdiffstats
path: root/kicker
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2012-07-07 19:38:19 +0200
committerSlávek Banko <slavek.banko@axis.cz>2012-07-07 19:43:40 +0200
commit5e71bdd0b15c8560d4f410cf38d2f779b533020b (patch)
treed0a2f9e92c2c8957b113223bb7614d57a018cd42 /kicker
parent93546d981cc14722e6ab1c00c1fd66908bbe8ba5 (diff)
downloadtdebase-5e71bdd0b15c8560d4f410cf38d2f779b533020b.tar.gz
tdebase-5e71bdd0b15c8560d4f410cf38d2f779b533020b.zip
Fix menu crash with disabled search field
This resolves Bug 1081 (cherry picked from commit 0afb2d8a78d212568f6836dd0e7d41382cfb991d)
Diffstat (limited to 'kicker')
-rw-r--r--kicker/kicker/ui/k_mnu.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/kicker/kicker/ui/k_mnu.cpp b/kicker/kicker/ui/k_mnu.cpp
index 188ecd38b..651d19204 100644
--- a/kicker/kicker/ui/k_mnu.cpp
+++ b/kicker/kicker/ui/k_mnu.cpp
@@ -273,6 +273,8 @@ void PanelKMenu::initialize()
connect(searchEdit, TQT_SIGNAL(textChanged(const TQString&)),
this, TQT_SLOT( slotUpdateSearch( const TQString&)));
insertItem(hbox, searchLineID, 0);
+ } else {
+ searchEdit = NULL;
}
//TQToolTip::add(clearButton, i18n("Clear Search"));