Mercurial > hg > sonic-visualiser
comparison main/MainWindow.cpp @ 2040:d5296c91a0ff zoom
Merge from default branch
author | Chris Cannam |
---|---|
date | Fri, 12 Oct 2018 11:14:16 +0100 |
parents | c669b40a8d56 262c656ec78f |
children | 8529a60df1b4 |
comparison
equal
deleted
inserted
replaced
2025:262c656ec78f | 2040:d5296c91a0ff |
---|---|
3578 } | 3578 } |
3579 | 3579 |
3580 void | 3580 void |
3581 MainWindow::closeEvent(QCloseEvent *e) | 3581 MainWindow::closeEvent(QCloseEvent *e) |
3582 { | 3582 { |
3583 // cerr << "MainWindow::closeEvent" << endl; | 3583 SVDEBUG << "MainWindow::closeEvent" << endl; |
3584 | 3584 |
3585 if (m_openingAudioFile) { | 3585 if (m_openingAudioFile) { |
3586 // cerr << "Busy - ignoring close event" << endl; | 3586 SVCERR << "Busy - ignoring close event" << endl; |
3587 e->ignore(); | 3587 e->ignore(); |
3588 return; | 3588 return; |
3589 } | 3589 } |
3590 | 3590 |
3591 if (!m_abandoning && !checkSaveModified()) { | 3591 if (!m_abandoning && !checkSaveModified()) { |
3592 // cerr << "Close refused by user - ignoring close event" << endl; | 3592 SVCERR << "Close refused by user - ignoring close event" << endl; |
3593 e->ignore(); | 3593 e->ignore(); |
3594 return; | 3594 return; |
3595 } | 3595 } |
3596 | 3596 |
3597 QSettings settings; | 3597 QSettings settings; |