changeset 136:37c26877ca5f

* Sort-of fix for #1508587 Closing SV window during startup leaves invisible process. Simply prevent the user from closing the window during startup...
author Chris Cannam
date Mon, 30 Apr 2007 09:34:13 +0000
parents 8a24df5d3b0b
children 006c90387f40
files main/MainWindow.cpp
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/main/MainWindow.cpp	Mon Apr 30 09:04:42 2007 +0000
+++ b/main/MainWindow.cpp	Mon Apr 30 09:34:13 2007 +0000
@@ -2899,6 +2899,12 @@
 {
     std::cerr << "MainWindow::closeEvent" << std::endl;
 
+    if (m_openingAudioFile) {
+        std::cerr << "Busy - ignoring close event" << std::endl;
+	e->ignore();
+	return;
+    }
+
     if (!m_abandoning && !checkSaveModified()) {
         std::cerr << "Ignoring close event" << std::endl;
 	e->ignore();