Mercurial > hg > sonic-visualiser
comparison main/MainWindow.cpp @ 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 |
comparison
equal
deleted
inserted
replaced
135:8a24df5d3b0b | 136:37c26877ca5f |
---|---|
2897 void | 2897 void |
2898 MainWindow::closeEvent(QCloseEvent *e) | 2898 MainWindow::closeEvent(QCloseEvent *e) |
2899 { | 2899 { |
2900 std::cerr << "MainWindow::closeEvent" << std::endl; | 2900 std::cerr << "MainWindow::closeEvent" << std::endl; |
2901 | 2901 |
2902 if (m_openingAudioFile) { | |
2903 std::cerr << "Busy - ignoring close event" << std::endl; | |
2904 e->ignore(); | |
2905 return; | |
2906 } | |
2907 | |
2902 if (!m_abandoning && !checkSaveModified()) { | 2908 if (!m_abandoning && !checkSaveModified()) { |
2903 std::cerr << "Ignoring close event" << std::endl; | 2909 std::cerr << "Ignoring close event" << std::endl; |
2904 e->ignore(); | 2910 e->ignore(); |
2905 return; | 2911 return; |
2906 } | 2912 } |