From d65d0f3c668930d6f0f41709cd8ad5273a5967d4 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Sat, 26 Sep 2015 21:51:46 -0700 Subject: [PATCH] No widgets in mobile builds --- src/ui/MainWindow.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ui/MainWindow.cc b/src/ui/MainWindow.cc index dc01ef034d..997ba8d000 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()); -- GitLab