comparison 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
comparison
equal deleted inserted replaced
64:794db9353c7f 65:7b1b333acf93
69 connectActions(); 69 connectActions();
70 enableDisableActions(); 70 enableDisableActions();
71 71
72 if (firstStart) { 72 if (firstStart) {
73 startupDialog(); 73 startupDialog();
74 firstStart = false;
75 } 74 }
76 75
77 ColourSet *cs = ColourSet::instance(); 76 ColourSet *cs = ColourSet::instance();
78 cs->clearDefaultNames(); 77 cs->clearDefaultNames();
79 cs->addDefaultName(""); 78 cs->addDefaultName("");
689 688
690 689
691 void MainWindow::startupDialog() 690 void MainWindow::startupDialog()
692 { 691 {
693 StartupDialog *dlg = new StartupDialog(this); 692 StartupDialog *dlg = new StartupDialog(this);
694 dlg->exec(); 693 if (dlg->exec()) firstStart = false;
695 } 694 }
696 695
697 696
698 void MainWindow::settings() 697 void MainWindow::settings()
699 { 698 {