summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Faure <david.faure@kdab.com>2014-04-12 09:25:28 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-04-18 00:04:46 (GMT)
commitd0b790dcd02da959cbdfc83d606906cead9e8375 (patch)
treeda4dccc573dd07515ca5a72065728ea133d8ff5d /src
parent45d0c506683f98cc981dc2623960334776d11c3c (diff)
downloadQt-d0b790dcd02da959cbdfc83d606906cead9e8375.zip
Qt-d0b790dcd02da959cbdfc83d606906cead9e8375.tar.gz
Qt-d0b790dcd02da959cbdfc83d606906cead9e8375.tar.bz2
QDbus: Fix (!a == b) comparison
! binds to a, and that is wrong here. (cherry picked from qtbase/4b7cd57719a637189696d673b014ae785df669bf) Change-Id: I75542a0c27f39fb6e684dedd9925a1f3748d4919 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/dbus/qdbuspendingcall.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dbus/qdbuspendingcall.cpp b/src/dbus/qdbuspendingcall.cpp
index 06597a6..b7def2e 100644
--- a/src/dbus/qdbuspendingcall.cpp
+++ b/src/dbus/qdbuspendingcall.cpp
@@ -225,7 +225,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(