Unverified Commit ca8386b0 authored by Gus Grubba's avatar Gus Grubba Committed by GitHub

Merge pull request #8125 from mavlink/pr-settings-version

Bump settings version
parents ed56b760 7a0a45a4
...@@ -10,6 +10,6 @@ ...@@ -10,6 +10,6 @@
// If you need to make an incompatible changes to stored settings, bump this version number // If you need to make an incompatible changes to stored settings, bump this version number
// up by 1. This will caused store settings to be cleared on next boot. // up by 1. This will caused store settings to be cleared on next boot.
#define QGC_SETTINGS_VERSION 8 #define QGC_SETTINGS_VERSION 9
#endif // QGC_CONFIGURATION_H #endif // QGC_CONFIGURATION_H
...@@ -173,6 +173,7 @@ Rectangle { ...@@ -173,6 +173,7 @@ Rectangle {
} }
Component.onCompleted: { Component.onCompleted: {
var index = mapCombo.find(_mapProvider) var index = mapCombo.find(_mapProvider)
if(index < 0) index = 0
mapCombo.currentIndex = index mapCombo.currentIndex = index
} }
} }
...@@ -190,6 +191,7 @@ Rectangle { ...@@ -190,6 +191,7 @@ Rectangle {
} }
Component.onCompleted: { Component.onCompleted: {
var index = mapTypeCombo.find(_mapType) var index = mapTypeCombo.find(_mapType)
if(index < 0) index = 0
mapTypeCombo.currentIndex = index 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