diff --git a/src/ui/MainWindow.cc b/src/ui/MainWindow.cc index dc01ef034d74a77a4c0f71066036eae6ea7316f9..997ba8d0001b7690a23ad0e8edb777eb6cf238e0 100644 --- a/src/ui/MainWindow.cc +++ b/src/ui/MainWindow.cc @@ -823,6 +823,8 @@ void MainWindow::_storeCurrentViewState(void) { // HIL dock widgets are dynamic and are not part of the saved state _hideAllHilDockWidgets(); + +#ifndef __mobile__ // Save list of visible widgets bool firstWidget = true; QString widgetNames = ""; @@ -836,6 +838,7 @@ void MainWindow::_storeCurrentViewState(void) } } settings.setValue(_getWindowStateKey() + "WIDGETS", widgetNames); +#endif settings.setValue(_getWindowStateKey(), saveState()); settings.setValue(_getWindowGeometryKey(), saveGeometry()); } @@ -906,6 +909,7 @@ void MainWindow::_loadCurrentViewState(void) // Hide all widgets from previous view _hideAllDockWidgets(); +#ifndef __mobile__ // Restore the widgets for the new view QString widgetNames = settings.value(_getWindowStateKey() + "WIDGETS", defaultWidgets).toString(); qDebug() << widgetNames; @@ -916,6 +920,7 @@ void MainWindow::_loadCurrentViewState(void) _showDockWidget(widgetName, true); } } +#endif if (settings.contains(_getWindowStateKey())) { restoreState(settings.value(_getWindowStateKey()).toByteArray());