1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-17 02:52:12 +01:00

GCS: Small bugfix, with no ini file, the initial workspaces got their

'empty gadget/widget' removed.


git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1743 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
cranphin 2010-09-25 14:24:52 +00:00 committed by cranphin
parent 1f482371ca
commit 8fd00b9466

View File

@ -517,7 +517,14 @@ void UAVGadgetManager::saveSettings(QSettings *qs)
void UAVGadgetManager::readSettings(QSettings *qs)
{
qs->beginGroup("UAVGadgetManager");
QString uavGadgetManagerRootKey = "UAVGadgetManager";
if(!qs->childGroups().contains(uavGadgetManagerRootKey)) {
return;
}
if(!qs->childGroups().contains(m_uavGadgetMode->uniqueModeName())) {
return;
}
qs->beginGroup(uavGadgetManagerRootKey);
qs->beginGroup(m_uavGadgetMode->uniqueModeName());
QString defaultUAVGadgetManagerKey = "DefaultSettings";