Browse Source

Forgot to bump config version number.

Removed redundant counter while at it.
QGC4.4
dogmaphobic 10 years ago
parent
commit
5feeb51704
  1. 2
      src/QGCConfig.h
  2. 4
      src/comm/LinkManager.cc

2
src/QGCConfig.h

@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
// 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.
#define QGC_SETTINGS_VERSION 5
#define QGC_SETTINGS_VERSION 6
#define QGC_APPLICATION_NAME "QGroundControl"
#define QGC_ORG_NAME "QGroundControl.org"

4
src/comm/LinkManager.cc

@ -326,7 +326,6 @@ void LinkManager::saveLinkConfigurationList() @@ -326,7 +326,6 @@ void LinkManager::saveLinkConfigurationList()
QSettings settings;
settings.remove(LinkConfiguration::settingsRoot());
int index = 0;
int count = 0;
foreach (LinkConfiguration* pLink, _linkConfigurations) {
Q_ASSERT(pLink != NULL);
if(!pLink->isDynamic())
@ -338,11 +337,10 @@ void LinkManager::saveLinkConfigurationList() @@ -338,11 +337,10 @@ void LinkManager::saveLinkConfigurationList()
settings.setValue(root + "/preferred", pLink->isPreferred());
// Have the instance save its own values
pLink->saveSettings(settings, root);
count++;
}
}
QString root(LinkConfiguration::settingsRoot());
settings.setValue(root + "/count", count);
settings.setValue(root + "/count", index);
emit linkConfigurationChanged();
}

Loading…
Cancel
Save