Browse Source

We must save a separate config file for each custom mode

Because the indexes into the stackedwidget are all wrong
QGC4.4
John Tapsell 11 years ago
parent
commit
13abea4e59
  1. 4
      src/ui/MainWindow.cc

4
src/ui/MainWindow.cc

@ -435,10 +435,10 @@ QString MainWindow::getWindowStateKey() @@ -435,10 +435,10 @@ QString MainWindow::getWindowStateKey()
{
if (UASManager::instance()->getActiveUAS())
{
return QString::number(currentView)+"_windowstate_" + UASManager::instance()->getActiveUAS()->getAutopilotTypeName();
return QString::number(currentView)+"_windowstate_" + QString::number(getCustomMode()) + "_" + UASManager::instance()->getActiveUAS()->getAutopilotTypeName();
}
else
return QString::number(currentView)+"_windowstate";
return QString::number(currentView)+"_windowstate_" + QString::number(getCustomMode());
}
QString MainWindow::getWindowGeometryKey()

Loading…
Cancel
Save