Mercurial > hg > svapp
comparison framework/MainWindowBase.cpp @ 622:22e455beee3b import-audio-data
Ensure data files used as import sources don't end up in Recent Files
author | Chris Cannam |
---|---|
date | Wed, 12 Sep 2018 15:42:33 +0100 |
parents | 0e95c30d6680 |
children | 15a566f26114 51ecc3e2d71c |
comparison
equal
deleted
inserted
replaced
621:5e0018969003 | 622:22e455beee3b |
---|---|
1712 | 1712 |
1713 CommandHistory::getInstance()->endCompoundOperation(); | 1713 CommandHistory::getInstance()->endCompoundOperation(); |
1714 } | 1714 } |
1715 | 1715 |
1716 updateMenuStates(); | 1716 updateMenuStates(); |
1717 m_recentFiles.addFile(source.getLocation()); | 1717 |
1718 if (registerSource) { | |
1719 m_recentFiles.addFile(source.getLocation()); | |
1720 } | |
1718 if (!source.isRemote() && registerSource) { | 1721 if (!source.isRemote() && registerSource) { |
1719 // for file dialog | 1722 // for file dialog |
1720 registerLastOpenedFilePath(FileFinder::AudioFile, | 1723 registerLastOpenedFilePath(FileFinder::AudioFile, |
1721 source.getLocalFilename()); | 1724 source.getLocalFilename()); |
1722 } | 1725 } |
1726 | |
1723 m_openingAudioFile = false; | 1727 m_openingAudioFile = false; |
1724 | 1728 |
1725 currentPaneChanged(m_paneStack->getCurrentPane()); | 1729 currentPaneChanged(m_paneStack->getCurrentPane()); |
1726 | 1730 |
1727 emit audioFileLoaded(); | 1731 emit audioFileLoaded(); |