diff options
author | Cristian Adam <cristian.adam@nokia.com> | 2012-05-07 12:37:11 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-08 01:03:53 +0200 |
commit | 88b6015918d6b113a45ea514bbd8083873609486 (patch) | |
tree | 520c18125e4265377c25704a257d6a869413bc08 /src/location/maps/qgeoserviceprovider.cpp | |
parent | b7e24e32a602fa1e580562159976dcb3910245d9 (diff) | |
download | qtlocation-88b6015918d6b113a45ea514bbd8083873609486.tar.gz |
Do not completely ignore plugin error messages
If a plugin decides not to create a manager (mapping, geo, places etc)
its error message is at least displayed in the debugger output window.
Task-number: QTBUG-25672
Change-Id: Ic56544ff06188a701959a88f604f56c9a0ec65dc
Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
Diffstat (limited to 'src/location/maps/qgeoserviceprovider.cpp')
-rw-r--r-- | src/location/maps/qgeoserviceprovider.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/location/maps/qgeoserviceprovider.cpp b/src/location/maps/qgeoserviceprovider.cpp index d03b3510..0a2833ee 100644 --- a/src/location/maps/qgeoserviceprovider.cpp +++ b/src/location/maps/qgeoserviceprovider.cpp @@ -263,7 +263,7 @@ Manager *QGeoServiceProviderPrivate::manager(QGeoServiceProvider::Error *_error, engine->setManagerVersion( int(this->metaData.value(QStringLiteral("Version")).toDouble())); manager = new Manager(engine); - } else { + } else if (error == QGeoServiceProvider::NoError) { error = QGeoServiceProvider::NotSupportedError; errorString = QLatin1String("The service provider does not support the "); errorString.append(QLatin1String(Manager::staticMetaObject.className())); |