Created
August 5, 2017 18:03
-
-
Save Tofee/f0013fcc2fb614f34877ea23f4a9b22f to your computer and use it in GitHub Desktop.
Fix scan reply dbus signature https://codereview.qt-project.org/#/c/181345/2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Author: Lorn Potter <lorn.potter@canonical.com> | |
AuthorDate: 2017-01-05 15:07:38 +1000 | |
Commit: Lorn Potter <lorn.potter@canonical.com> | |
CommitDate: 2017-01-05 16:11:34 +1000 | |
Fix scan reply dbus signature | |
Task-number: QTBUG-57844 | |
Change-Id: I46796a4fccd45453152fbf26cc027a4bbc73df89 | |
diff --git a/src/plugins/bearer/connman/qconnmanservice_linux.cpp b/src/plugins/bearer/connman/qconnmanservice_linux.cpp | |
index 55eec57..7c9db46 100644 | |
--- a/src/plugins/bearer/connman/qconnmanservice_linux.cpp | |
+++ b/src/plugins/bearer/connman/qconnmanservice_linux.cpp | |
@@ -499,21 +499,21 @@ | |
void QConnmanTechnologyInterface::scan() | |
{ | |
QDBusPendingReply<> reply = asyncCall(QLatin1String("Scan")); | |
QDBusPendingCallWatcher *watcher = new QDBusPendingCallWatcher(reply, this); | |
connect(watcher, SIGNAL(finished(QDBusPendingCallWatcher*)), | |
this, SLOT(scanReply(QDBusPendingCallWatcher*))); | |
} | |
void QConnmanTechnologyInterface::scanReply(QDBusPendingCallWatcher *call) | |
{ | |
- QDBusPendingReply<QVariantMap> props_reply = *call; | |
+ QDBusPendingReply<> props_reply = *call; | |
if (props_reply.isError()) { | |
qDebug() << props_reply.error().message(); | |
} | |
Q_EMIT scanFinished(props_reply.isError()); | |
call->deleteLater(); | |
} | |
QT_END_NAMESPACE | |
#endif // QT_NO_DBUS | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment