summaryrefslogtreecommitdiffstats
path: root/src/corelib/statemachine/qsignaltransition.cpp
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-04-21 08:08:21 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-04-21 08:08:21 (GMT)
commit6e0926ff0c9044ed4e09630887c14657adf34a85 (patch)
tree2f6a7bf15f8ec493a8cfa5f416096a249d09e96a /src/corelib/statemachine/qsignaltransition.cpp
parent3aeb1d9e6b839aefe05b43c9452df9cdaa590ed2 (diff)
downloadQt-6e0926ff0c9044ed4e09630887c14657adf34a85.zip
Qt-6e0926ff0c9044ed4e09630887c14657adf34a85.tar.gz
Qt-6e0926ff0c9044ed4e09630887c14657adf34a85.tar.bz2
don't assert if the signal is not valid
Diffstat (limited to 'src/corelib/statemachine/qsignaltransition.cpp')
-rw-r--r--src/corelib/statemachine/qsignaltransition.cpp3
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);
}