diff --git a/src/QGCConfig.h b/src/QGCConfig.h index 07ae9ac..0d8f075 100644 --- a/src/QGCConfig.h +++ b/src/QGCConfig.h @@ -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" diff --git a/src/comm/LinkManager.cc b/src/comm/LinkManager.cc index da17e30..91e63ed 100644 --- a/src/comm/LinkManager.cc +++ b/src/comm/LinkManager.cc @@ -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() 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(); }