diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-09-24 23:43:10 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-10-01 16:35:48 +0900 |
commit | 24b42848c1a580f90e84e2e5f0f030eaa58871a8 (patch) | |
tree | 65d1a0c29ce8990f4d0b5c8b5d125787a825e325 | |
parent | 0d546f99aef5afced0d790099f22559a2da7796d (diff) | |
download | tqt3-24b42848c1a580f90e84e2e5f0f030eaa58871a8.tar.gz tqt3-24b42848c1a580f90e84e2e5f0f030eaa58871a8.zip |
Fix fallover case for TQEvent::MetaCall
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r-- | src/kernel/tqobject.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/kernel/tqobject.cpp b/src/kernel/tqobject.cpp index a943ff148..3c0b0f3ba 100644 --- a/src/kernel/tqobject.cpp +++ b/src/kernel/tqobject.cpp @@ -1094,6 +1094,7 @@ bool TQObject::event( TQEvent *e ) case TQEvent::MetaCall: { + bool handled = false; TQMetaCallEvent* metaEvent = dynamic_cast<TQMetaCallEvent*>(e); if (metaEvent) { #ifdef TQT_THREAD_SUPPORT @@ -1116,10 +1117,14 @@ bool TQObject::event( TQEvent *e ) #endif // TQT_THREAD_SUPPORT } TQUObject *o = metaEvent->data(); - if (metaEvent->type() == TQMetaCallEvent::MetaCallEmit) { + if (metaEvent->type() == TQMetaCallEvent::MetaCallEmit) + { + handled = true; tqt_emit( metaEvent->id(), o ); } - if (metaEvent->type() == TQMetaCallEvent::MetaCallInvoke) { + else if (metaEvent->type() == TQMetaCallEvent::MetaCallInvoke) + { + handled = true; tqt_invoke( metaEvent->id(), o ); } if ( sol ) @@ -1152,6 +1157,7 @@ bool TQObject::event( TQEvent *e ) #endif // TQT_THREAD_SUPPORT destroyDeepCopiedTQUObjectArray(metaEvent->data()); } + return handled; } default: |