blob: b52e511886156278f0688520741e2cee754dc6bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
commit 0afb2d8a78d212568f6836dd0e7d41382cfb991d
Author: Slávek Banko <[email protected]>
Date: 1341682699 +0200
Fix menu crash with disabled search field
This resolves Bug 1081
diff --git a/kicker/kicker/ui/k_mnu.cpp b/kicker/kicker/ui/k_mnu.cpp
index b7cfe8f..702c921 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"));
|