diff framework/MainWindowBase.cpp @ 496:4f1d280903ad tony-2.0-integration

Update analysis stuff when recording starts (and when model is added) rather than when it ends. Not continuing to update during recording though...
author Chris Cannam
date Mon, 12 Oct 2015 17:10:43 +0100
parents 7c779438edc3
children c82cae9a9e74
line wrap: on
line diff
--- a/framework/MainWindowBase.cpp	Mon Oct 12 15:06:02 2015 +0100
+++ b/framework/MainWindowBase.cpp	Mon Oct 12 17:10:43 2015 +0100
@@ -2801,6 +2801,8 @@
     updateMenuStates();
     m_recentFiles.addFile(model->getLocation());
     currentPaneChanged(m_paneStack->getCurrentPane());
+
+    emit audioFileLoaded();
 }
 
 void
@@ -3033,7 +3035,6 @@
 {
     if (m_recordTarget->isRecording()) {
         m_recordTarget->stopRecording();
-        emit audioFileLoaded();
     }
         
     m_playSource->stop();