diff options
author | abcd <amos.choy@nokia.com> | 2012-06-22 16:44:02 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-02 10:25:51 +0200 |
commit | 8b98472699b634626571911f26b4ed59660c586f (patch) | |
tree | c4c9f0e9fec6a28ab99b8018457f7b4b10b5a084 /src/plugins/geoservices/nokia/qplacemanagerengine_nokiav2.cpp | |
parent | 164b4530c7aa52b1f291eb86881722f876099209 (diff) | |
download | qtlocation-8b98472699b634626571911f26b4ed59660c586f.tar.gz |
Fix finished signaling (on error) for nokia plugin
The engine was not emitting a finished signal when the search reply
errored out due to bad search arguments.
Change-Id: I7010da1de31c98bc5a082fbf116e3ff6f3bf136b
Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
Diffstat (limited to 'src/plugins/geoservices/nokia/qplacemanagerengine_nokiav2.cpp')
-rw-r--r-- | src/plugins/geoservices/nokia/qplacemanagerengine_nokiav2.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/geoservices/nokia/qplacemanagerengine_nokiav2.cpp b/src/plugins/geoservices/nokia/qplacemanagerengine_nokiav2.cpp index 2ed54f9a..4ad92458 100644 --- a/src/plugins/geoservices/nokia/qplacemanagerengine_nokiav2.cpp +++ b/src/plugins/geoservices/nokia/qplacemanagerengine_nokiav2.cpp @@ -387,10 +387,12 @@ QPlaceSearchReply *QPlaceManagerEngineNokiaV2::search(const QPlaceSearchRequest if (unsupported) { QPlaceSearchReplyImpl *reply = new QPlaceSearchReplyImpl(query, 0, this); + connect(reply, SIGNAL(finished()), this, SLOT(replyFinished())); + connect(reply, SIGNAL(error(QPlaceReply::Error,QString)), + this, SLOT(replyError(QPlaceReply::Error,QString))); QMetaObject::invokeMethod(reply, "setError", Qt::QueuedConnection, Q_ARG(QPlaceReply::Error, QPlaceReply::BadArgumentError), Q_ARG(QString, "Unsupported search request options specified.")); - return reply; } |