1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-30 08:24:11 +01:00

GCS: Whoops! I broke saving layout for empty workspaces. This should fix

it, Sorry! :)


git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1723 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
cranphin 2010-09-22 22:28:52 +00:00 committed by cranphin
parent e44045f422
commit e217f8fc31

View File

@ -599,14 +599,12 @@ void SplitterOrView::saveState(QSettings* qSettings) const {
qSettings->beginGroup("side1");
static_cast<SplitterOrView*>(m_splitter->widget(1))->saveState(qSettings);
qSettings->endGroup();
} else {
} else if (gadget()) {
qSettings->setValue("type", "uavGadget");
qSettings->setValue("classId", gadget()->classId());
if (gadget()) {
qSettings->beginGroup("gadget");
gadget()->saveState(qSettings);
qSettings->endGroup();
}
qSettings->beginGroup("gadget");
gadget()->saveState(qSettings);
qSettings->endGroup();
}
}