# HG changeset patch # User Chris Cannam # Date 1177925653 0 # Node ID 37c26877ca5f527e4ebc288f88686f53d4c944bf # Parent 8a24df5d3b0bebdc9f42183babef129a1cff4d64 * Sort-of fix for #1508587 Closing SV window during startup leaves invisible process. Simply prevent the user from closing the window during startup... diff -r 8a24df5d3b0b -r 37c26877ca5f main/MainWindow.cpp --- 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();