From 6fb841887dbba208d47498a1746da46d659d959b Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Sun, 6 Aug 2017 16:53:09 +0300 Subject: 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 --- mobile-widgets/qml/MapWidget.qml | 4 ++++ 1 file changed, 4 insertions(+) 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 { -- cgit v1.2.3-70-g09d2