Commit 802ffa2a authored by Don Gagne's avatar Don Gagne

Fix multipleSignalsAllowed check

parent 997ddde6
......@@ -92,7 +92,8 @@ bool MultiSignalSpy::_checkSignalByMaskWorker(quint16 mask, bool multipleSignals
QSignalSpy* spy = _rgSpys[i];
Q_ASSERT(spy != NULL);
if ((multipleSignalsAllowed && spy->count() == 0) || spy->count() != 1) {
if ((multipleSignalsAllowed && spy->count() == 0) || (!multipleSignalsAllowed && spy->count() != 1)) {
qDebug() << "Failed index:" << i;
_printSignalState();
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment