comparison src/MainWindow.cpp @ 270:e33aa832e766

Save session fix also for Save As
author Chris Cannam
date Thu, 03 Apr 2014 09:08:12 +0100
parents 8eb167e817e7
children a895c7177841
comparison
equal deleted inserted replaced
269:8eb167e817e7 270:e33aa832e766
1705 } 1705 }
1706 1706
1707 void 1707 void
1708 MainWindow::saveSessionAs() 1708 MainWindow::saveSessionAs()
1709 { 1709 {
1710 // We do not want to save mid-analysis regions -- that would cause
1711 // confusion on reloading
1712 m_analyser->clearReAnalysis();
1713 clearSelection();
1714
1710 QString orig = m_audioFile; 1715 QString orig = m_audioFile;
1711 if (orig == "") orig = "."; 1716 if (orig == "") orig = ".";
1712 else orig = QFileInfo(orig).absoluteDir().canonicalPath(); 1717 else orig = QFileInfo(orig).absoluteDir().canonicalPath();
1713 1718
1714 QString path = getSaveFileName(FileFinder::SessionFile); 1719 QString path = getSaveFileName(FileFinder::SessionFile);