From cbecd3a8a71c92976314479c9ce892ee8138da5d Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 2 Apr 2011 21:48:09 +0000 Subject: Update kdebase inherits() to use new object name defines instead of string literals git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1226899 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- konsole/konsole/konsole.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'konsole') diff --git a/konsole/konsole/konsole.cpp b/konsole/konsole/konsole.cpp index d55042671..c071fb2e9 100644 --- a/konsole/konsole/konsole.cpp +++ b/konsole/konsole/konsole.cpp @@ -480,7 +480,7 @@ void Konsole::makeGUI() // Remove the empty separator Qt inserts if the menu is empty on popup, // not sure if this will be "fixed" in Qt, for now use this hack (malte) if(!(isRestored)) { - if (sender() && sender()->inherits("QPopupMenu") && + if (sender() && sender()->inherits(TQPOPUPMENU_OBJECT_NAME_STRING) && static_cast(sender())->count() == 1) const_cast(static_cast(sender()))->removeItemAt(0); } -- cgit v1.2.1