summaryrefslogtreecommitdiffstats
path: root/src/corelib
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:09:50 (GMT)
commit965a0d60fe28666471e9ffb99a7e97097254a4cc (patch)
treecb3b9c966d7bcec8f8c1ddbdc60c4da4a0bc3c3f /src/corelib
parent8321c137fe93ee0dfe6193076eff62325142e25b (diff)
downloadQt-965a0d60fe28666471e9ffb99a7e97097254a4cc.zip
Qt-965a0d60fe28666471e9ffb99a7e97097254a4cc.tar.gz
Qt-965a0d60fe28666471e9ffb99a7e97097254a4cc.tar.bz2
don't assert if the signal is not valid
Diffstat (limited to 'src/corelib')
-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);
}