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:
parent
1f482371ca
commit
8fd00b9466
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user