mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +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 {
|
||||
id: mapPlugin
|
||||
name: "googlemaps"
|
||||
Component.onCompleted: {
|
||||
if (availableServiceProviders.indexOf(name) === -1)
|
||||
console.warn("MapWidget.qml: cannot find a plugin with the name '" + name + "'")
|
||||
}
|
||||
}
|
||||
|
||||
MapWidgetHelper {
|
||||
|
|
Loading…
Reference in a new issue