QDbus: Fix (!a == b) comparison

! binds to a, and that is wrong here.

Change-Id: I746d2b82bbd03635b3aa06abb0c5566f84a03128
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Tobias Hunger 2013-08-29 10:56:32 +02:00 committed by The Qt Project
parent 8fc97fdfc7
commit 4b7cd57719

View File

@ -221,7 +221,7 @@ void QDBusPendingCallPrivate::checkReceivedSignature()
return; // no signature to validate against
// can't use startsWith here because a null string doesn't start or end with an empty string
if (!replyMessage.signature().indexOf(expectedReplySignature) == 0) {
if (replyMessage.signature().indexOf(expectedReplySignature) != 0) {
QString errorMsg = QLatin1String("Unexpected reply signature: got \"%1\", "
"expected \"%2\"");
replyMessage = QDBusMessage::createError(