summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-08-06 16:53:09 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-08-07 00:51:21 -0700
commit6fb841887dbba208d47498a1746da46d659d959b (patch)
tree33a562bda1971b5a61f2ba47bc6309a6e681d2d1 /mobile-widgets
parentaea1cc4b8a10a092d9d36900f1b1a485daf013bf (diff)
downloadsubsurface-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.qml4
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 {