mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
aea1cc4b8a
commit
6fb841887d
1 changed files with 4 additions and 0 deletions
|
@ -10,6 +10,10 @@ Item {
|
||||||
Plugin {
|
Plugin {
|
||||||
id: mapPlugin
|
id: mapPlugin
|
||||||
name: "googlemaps"
|
name: "googlemaps"
|
||||||
|
Component.onCompleted: {
|
||||||
|
if (availableServiceProviders.indexOf(name) === -1)
|
||||||
|
console.warn("MapWidget.qml: cannot find a plugin with the name '" + name + "'")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MapWidgetHelper {
|
MapWidgetHelper {
|
||||||
|
|
Loading…
Add table
Reference in a new issue