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:09:50 (GMT) |
commit | 965a0d60fe28666471e9ffb99a7e97097254a4cc (patch) | |
tree | cb3b9c966d7bcec8f8c1ddbdc60c4da4a0bc3c3f /src/corelib | |
parent | 8321c137fe93ee0dfe6193076eff62325142e25b (diff) | |
download | Qt-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.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); } |