[PATCH] Set view state after loading configuration.

Michael Andreen harv at ruin.nu
Sun Nov 10 07:09:03 UTC 2013


Setting the view state triggers a save of the splitter state, which
overwrote the saved values with default ones.

Signed-off-by: Michael Andreen <harv at ruin.nu>
---
 qt-ui/mainwindow.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 348d08c..943c401 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -393,7 +393,6 @@ void MainWindow::on_actionViewGlobe_triggered()
 
 void MainWindow::on_actionViewAll_triggered()
 {
-	beginChangeState(VIEWALL);
 	QSettings settings;
 	settings.beginGroup("MainWindow");
 	if (settings.value("mainSplitter").isValid()){
@@ -416,6 +415,7 @@ void MainWindow::on_actionViewAll_triggered()
 		listGlobeSizes.append( qApp->desktop()->size().width() * 0.3 );
 		ui.listGlobeSplitter->setSizes(listGlobeSizes);
 	}
+	beginChangeState(VIEWALL);
 	redrawProfile();
 }
 
-- 
1.8.3.2




More information about the subsurface mailing list