Skip to content
Snippets Groups Projects
Commit 802ffa2a authored by Don Gagne's avatar Don Gagne
Browse files

Fix multipleSignalsAllowed check

parent 997ddde6
No related branches found
No related tags found
No related merge requests found
...@@ -92,7 +92,8 @@ bool MultiSignalSpy::_checkSignalByMaskWorker(quint16 mask, bool multipleSignals ...@@ -92,7 +92,8 @@ bool MultiSignalSpy::_checkSignalByMaskWorker(quint16 mask, bool multipleSignals
QSignalSpy* spy = _rgSpys[i]; QSignalSpy* spy = _rgSpys[i];
Q_ASSERT(spy != NULL); 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(); _printSignalState();
return false; return false;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment