changeset 311:4cf65a721a77

fixed save in audio file path to not try and save when there's no audio file
author matthiasm
date Fri, 13 Jun 2014 09:06:39 +0100
parents 1e9c4549107a
children 111bf81a5c96
files src/MainWindow.cpp
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/MainWindow.cpp	Thu Jun 12 21:07:57 2014 +0100
+++ b/src/MainWindow.cpp	Fri Jun 13 09:06:39 2014 +0100
@@ -1804,6 +1804,9 @@
 void
 MainWindow::saveSessionInAudioPath()
 {
+
+    if (m_audioFile == "") return;
+
     // We do not want to save mid-analysis regions -- that would cause
     // confusion on reloading
     m_analyser->clearReAnalysis();