diff options
author | Tobias Hunger <tobias.hunger@digia.com> | 2013-08-29 10:56:32 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-02 13:07:44 +0200 |
commit | 4b7cd57719a637189696d673b014ae785df669bf (patch) | |
tree | 0e3388dd3df18601554fe606ccbd273d5b932470 /src | |
parent | 8fc97fdfc76fc62e1faa23f8b768d1ec303329d4 (diff) |
QDbus: Fix (!a == b) comparison
! binds to a, and that is wrong here.
Change-Id: I746d2b82bbd03635b3aa06abb0c5566f84a03128
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/dbus/qdbuspendingcall.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dbus/qdbuspendingcall.cpp b/src/dbus/qdbuspendingcall.cpp index 49f9fc0cd8..e990e7d18b 100644 --- a/src/dbus/qdbuspendingcall.cpp +++ b/src/dbus/qdbuspendingcall.cpp @@ -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( |