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:
parent
e44045f422
commit
e217f8fc31
@ -599,16 +599,14 @@ 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void SplitterOrView::restoreState(QSettings* qSettings)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user