Commit 7a0a45a4 authored by Gus Grubba's avatar Gus Grubba

Use sensible values if string is not found.

parent 23877ca9
......@@ -173,6 +173,7 @@ Rectangle {
}
Component.onCompleted: {
var index = mapCombo.find(_mapProvider)
if(index < 0) index = 0
mapCombo.currentIndex = index
}
}
......@@ -190,6 +191,7 @@ Rectangle {
}
Component.onCompleted: {
var index = mapTypeCombo.find(_mapType)
if(index < 0) index = 0
mapTypeCombo.currentIndex = index
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment