summaryrefslogtreecommitdiffstats
path: root/konsole
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-02 21:48:09 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-02 21:48:09 +0000
commitcbecd3a8a71c92976314479c9ce892ee8138da5d (patch)
tree082c9abc0aab13bcefbe5f3578eb55c6e6964cdb /konsole
parent161e6c2e3ade351f6d1fbed595939c86e397274c (diff)
downloadtdebase-cbecd3a8a71c92976314479c9ce892ee8138da5d.tar.gz
tdebase-cbecd3a8a71c92976314479c9ce892ee8138da5d.zip
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
Diffstat (limited to 'konsole')
-rw-r--r--konsole/konsole/konsole.cpp2
1 files changed, 1 insertions, 1 deletions
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<const TQPopupMenu *>(sender())->count() == 1)
const_cast<TQPopupMenu *>(static_cast<const TQPopupMenu *>(sender()))->removeItemAt(0);
}