diff mainwindow.cpp @ 65:7b1b333acf93

* Don't switch off firstStart unless user has actually OK'd the dialog (they might have closed it via WM button)
author Chris Cannam
date Wed, 17 Nov 2010 20:21:00 +0000
parents 794db9353c7f
children 6d5a5571caec
line wrap: on
line diff
--- a/mainwindow.cpp	Wed Nov 17 17:49:16 2010 +0000
+++ b/mainwindow.cpp	Wed Nov 17 20:21:00 2010 +0000
@@ -71,7 +71,6 @@
 
     if (firstStart) {
         startupDialog();
-        firstStart = false;
     }
 
     ColourSet *cs = ColourSet::instance();
@@ -691,7 +690,7 @@
 void MainWindow::startupDialog()
 {
     StartupDialog *dlg = new StartupDialog(this);
-    dlg->exec();
+    if (dlg->exec()) firstStart = false;
 }