diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2017-08-06 16:53:09 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-08-07 00:51:21 -0700 |
commit | 6fb841887dbba208d47498a1746da46d659d959b (patch) | |
tree | 33a562bda1971b5a61f2ba47bc6309a6e681d2d1 /mobile-widgets | |
parent | aea1cc4b8a10a092d9d36900f1b1a485daf013bf (diff) | |
download | subsurface-6fb841887dbba208d47498a1746da46d659d959b.tar.gz |
mapwidget.qml: add better error reporing on a missing map plugin
For instance, if the 'googlemaps' geoservices plugin is missing
a new message is now shown:
"qml: MapWidget.qml: cannot find a plugin with the name 'googlemaps'"
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qml/MapWidget.qml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mobile-widgets/qml/MapWidget.qml b/mobile-widgets/qml/MapWidget.qml index 164170ca2..f3853de74 100644 --- a/mobile-widgets/qml/MapWidget.qml +++ b/mobile-widgets/qml/MapWidget.qml @@ -10,6 +10,10 @@ Item { Plugin { id: mapPlugin name: "googlemaps" + Component.onCompleted: { + if (availableServiceProviders.indexOf(name) === -1) + console.warn("MapWidget.qml: cannot find a plugin with the name '" + name + "'") + } } MapWidgetHelper { |