Mercurial > hg > tony
comparison src/MainWindow.cpp @ 309:585c045129c9
Some tidying & fixing compiler warnings
author | Chris Cannam |
---|---|
date | Thu, 12 Jun 2014 18:52:52 +0100 |
parents | 6045288159e9 |
children | 1e9c4549107a |
comparison
equal
deleted
inserted
replaced
308:ecd430813eae | 309:585c045129c9 |
---|---|
1798 // We do not want to save mid-analysis regions -- that would cause | 1798 // We do not want to save mid-analysis regions -- that would cause |
1799 // confusion on reloading | 1799 // confusion on reloading |
1800 m_analyser->clearReAnalysis(); | 1800 m_analyser->clearReAnalysis(); |
1801 clearSelection(); | 1801 clearSelection(); |
1802 | 1802 |
1803 QString orig = m_audioFile; | |
1804 if (orig == "") orig = "."; | |
1805 else orig = QFileInfo(orig).absoluteDir().canonicalPath(); | |
1806 | |
1807 QString path = getSaveFileName(FileFinder::SessionFile); | 1803 QString path = getSaveFileName(FileFinder::SessionFile); |
1808 | 1804 |
1809 if (path == "") return; | 1805 if (path == "") { |
1806 return; | |
1807 } | |
1810 | 1808 |
1811 if (!saveSessionFile(path)) { | 1809 if (!saveSessionFile(path)) { |
1812 QMessageBox::critical(this, tr("Failed to save file"), | 1810 QMessageBox::critical(this, tr("Failed to save file"), |
1813 tr("Session file \"%1\" could not be saved.").arg(path)); | 1811 tr("Session file \"%1\" could not be saved.").arg(path)); |
1814 } else { | 1812 } else { |