Browse Source

Use sensible values if string is not found.

QGC4.4
Gus Grubba 5 years ago
parent
commit
7a0a45a434
  1. 2
      src/ui/preferences/GeneralSettings.qml

2
src/ui/preferences/GeneralSettings.qml

@ -173,6 +173,7 @@ Rectangle { @@ -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 { @@ -190,6 +191,7 @@ Rectangle {
}
Component.onCompleted: {
var index = mapTypeCombo.find(_mapType)
if(index < 0) index = 0
mapTypeCombo.currentIndex = index
}
}

Loading…
Cancel
Save