comparison src/MainWindow.cpp @ 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
comparison
equal deleted inserted replaced
310:1e9c4549107a 311:4cf65a721a77
1802 } 1802 }
1803 1803
1804 void 1804 void
1805 MainWindow::saveSessionInAudioPath() 1805 MainWindow::saveSessionInAudioPath()
1806 { 1806 {
1807
1808 if (m_audioFile == "") return;
1809
1807 // We do not want to save mid-analysis regions -- that would cause 1810 // We do not want to save mid-analysis regions -- that would cause
1808 // confusion on reloading 1811 // confusion on reloading
1809 m_analyser->clearReAnalysis(); 1812 m_analyser->clearReAnalysis();
1810 clearSelection(); 1813 clearSelection();
1811 1814