diff framework/MainWindowBase.cpp @ 504:74fa499d5f3c 3.0-integration

Remove duplicate code
author Chris Cannam
date Wed, 14 Oct 2015 13:33:42 +0100
parents 0fe07a89fbbb
children 7cf6f5501212 14a81e881b1a
line wrap: on
line diff
--- a/framework/MainWindowBase.cpp	Wed Oct 14 13:33:23 2015 +0100
+++ b/framework/MainWindowBase.cpp	Wed Oct 14 13:33:42 2015 +0100
@@ -2701,15 +2701,6 @@
         }
     }
 
-    QAction *action = qobject_cast<QAction *>(sender());
-    
-    if (m_audioRecordMode == RecordReplaceSession) {
-        if (!checkSaveModified()) {
-            if (action) action->setChecked(false);
-            return;
-        }
-    }
-
     m_audioIO->resume();
     WritableWaveFileModel *model = m_recordTarget->startRecording();
     if (!model) {