diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-04-21 08:08:21 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-04-21 08:08:21 (GMT) |
commit | 6e0926ff0c9044ed4e09630887c14657adf34a85 (patch) | |
tree | 2f6a7bf15f8ec493a8cfa5f416096a249d09e96a /src | |
parent | 3aeb1d9e6b839aefe05b43c9452df9cdaa590ed2 (diff) | |
download | Qt-6e0926ff0c9044ed4e09630887c14657adf34a85.zip Qt-6e0926ff0c9044ed4e09630887c14657adf34a85.tar.gz Qt-6e0926ff0c9044ed4e09630887c14657adf34a85.tar.bz2 |
don't assert if the signal is not valid
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/statemachine/qsignaltransition.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/corelib/statemachine/qsignaltransition.cpp b/src/corelib/statemachine/qsignaltransition.cpp index 83733cf..64e2952 100644 --- a/src/corelib/statemachine/qsignaltransition.cpp +++ b/src/corelib/statemachine/qsignaltransition.cpp @@ -233,8 +233,9 @@ bool QSignalTransition::eventTest(QEvent *event) const #else if (event->type() == QEvent::Type(QEvent::User-1)) { #endif + if (d->signalIndex == -1) + return false; QSignalEvent *se = static_cast<QSignalEvent*>(event); - Q_ASSERT(d->signalIndex != -1); return (se->sender() == d->sender) && (se->signalIndex() == d->signalIndex); } |