Commit c5df4e7d authored by Don Gagne's avatar Don Gagne

Merge pull request #1511 from DonLakeFlyer/FlyViewWidgets

Put back Fly View default widgets
parents db135056 b0972dd0
...@@ -1086,8 +1086,7 @@ void MainWindow::_loadCurrentViewState(void) ...@@ -1086,8 +1086,7 @@ void MainWindow::_loadCurrentViewState(void)
case VIEW_FLIGHT: case VIEW_FLIGHT:
_buildFlightView(); _buildFlightView();
centerView = _flightView; centerView = _flightView;
//defaultWidgets = "COMMUNICATION_CONSOLE_DOCKWIDGET,UAS_INFO_INFOVIEW_DOCKWIDGET"; defaultWidgets = "COMMUNICATION_CONSOLE_DOCKWIDGET,UAS_INFO_INFOVIEW_DOCKWIDGET";
defaultWidgets.clear();
break; break;
case VIEW_PLAN: case VIEW_PLAN:
...@@ -1141,6 +1140,7 @@ void MainWindow::_loadCurrentViewState(void) ...@@ -1141,6 +1140,7 @@ void MainWindow::_loadCurrentViewState(void)
// Restore the widgets for the new view // Restore the widgets for the new view
QString widgetNames = settings.value(_getWindowStateKey() + "WIDGETS", defaultWidgets).toString(); QString widgetNames = settings.value(_getWindowStateKey() + "WIDGETS", defaultWidgets).toString();
qDebug() << widgetNames;
if (!widgetNames.isEmpty()) { if (!widgetNames.isEmpty()) {
QStringList split = widgetNames.split(","); QStringList split = widgetNames.split(",");
foreach (QString widgetName, split) { foreach (QString widgetName, split) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment