changeset 2440:d811380516f6 spectrogram-export

Replace use of m_abandoning by setting document modified to false
author Chris Cannam
date Wed, 08 Jan 2020 15:39:34 +0000
parents 882848f168e8
children 3612bfc24950
files main/MainWindow.cpp main/OSCHandler.cpp
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/main/MainWindow.cpp	Wed Jan 08 15:36:12 2020 +0000
+++ b/main/MainWindow.cpp	Wed Jan 08 15:39:34 2020 +0000
@@ -3594,7 +3594,7 @@
         return;
     }
 
-    if (!m_abandoning && !checkSaveModified()) {
+    if (!checkSaveModified()) {
         SVCERR << "Close refused by user - ignoring close event" << endl;
         e->ignore();
         return;
--- a/main/OSCHandler.cpp	Wed Jan 08 15:36:12 2020 +0000
+++ b/main/OSCHandler.cpp	Wed Jan 08 15:39:34 2020 +0000
@@ -570,8 +570,9 @@
         }
 
     } else if (message.getMethod() == "quit") {
-        
-        m_abandoning = true;
+
+        SVDEBUG << "OSCHandler: Exiting abruptly" << endl;
+        m_documentModified = false; // so we don't ask to save
         close();
 
     } else if (message.getMethod() == "resize") {