Commit 5feeb517 authored by dogmaphobic's avatar dogmaphobic

Forgot to bump config version number.

Removed redundant counter while at it.
parent 9315bf5f
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
// 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 5 #define QGC_SETTINGS_VERSION 6
#define QGC_APPLICATION_NAME "QGroundControl" #define QGC_APPLICATION_NAME "QGroundControl"
#define QGC_ORG_NAME "QGroundControl.org" #define QGC_ORG_NAME "QGroundControl.org"
......
...@@ -326,7 +326,6 @@ void LinkManager::saveLinkConfigurationList() ...@@ -326,7 +326,6 @@ void LinkManager::saveLinkConfigurationList()
QSettings settings; QSettings settings;
settings.remove(LinkConfiguration::settingsRoot()); settings.remove(LinkConfiguration::settingsRoot());
int index = 0; int index = 0;
int count = 0;
foreach (LinkConfiguration* pLink, _linkConfigurations) { foreach (LinkConfiguration* pLink, _linkConfigurations) {
Q_ASSERT(pLink != NULL); Q_ASSERT(pLink != NULL);
if(!pLink->isDynamic()) if(!pLink->isDynamic())
...@@ -338,11 +337,10 @@ void LinkManager::saveLinkConfigurationList() ...@@ -338,11 +337,10 @@ void LinkManager::saveLinkConfigurationList()
settings.setValue(root + "/preferred", pLink->isPreferred()); settings.setValue(root + "/preferred", pLink->isPreferred());
// Have the instance save its own values // Have the instance save its own values
pLink->saveSettings(settings, root); pLink->saveSettings(settings, root);
count++;
} }
} }
QString root(LinkConfiguration::settingsRoot()); QString root(LinkConfiguration::settingsRoot());
settings.setValue(root + "/count", count); settings.setValue(root + "/count", index);
emit linkConfigurationChanged(); emit linkConfigurationChanged();
} }
......
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