summaryrefslogtreecommitdiffstats
path: root/kmymoney2/views
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/views')
-rw-r--r--kmymoney2/views/kgloballedgerview.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/kmymoney2/views/kgloballedgerview.cpp b/kmymoney2/views/kgloballedgerview.cpp
index 270e630..7d05df1 100644
--- a/kmymoney2/views/kgloballedgerview.cpp
+++ b/kmymoney2/views/kgloballedgerview.cpp
@@ -1274,14 +1274,14 @@ bool TDEGlobalLedgerView::eventFilter(TQObject* o, TQEvent* e)
TQKeyEvent *k = TQT_TQKEYEVENT(e);
if(m_inEditMode) {
// tqDebug(TQString("object = %1, key = %2").arg(o->className()).arg(k->key()));
- if(TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_register)) {
+ if(o == m_register) {
// we hide all key press events from the register
// while editing a transaction
rc = true;
}
} else {
// tqDebug(TQString("object = %1, key = %2").arg(o->className()).arg(k->key()));
- if(TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_register)) {
+ if(o == m_register) {
if((k->state() & TQt::KeyButtonMask) == 0) {
switch(k->key()) {
case TQt::Key_Return: