# HG changeset patch # User matthiasm # Date 1402646799 -3600 # Node ID 4cf65a721a7740c793bbfcf5c817c48bb4ce31e8 # Parent 1e9c4549107a20c9f577018610df75f41ad8683e fixed save in audio file path to not try and save when there's no audio file diff -r 1e9c4549107a -r 4cf65a721a77 src/MainWindow.cpp --- 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();