# HG changeset patch # User Chris Cannam # Date 1536763353 -3600 # Node ID 22e455beee3b777dd98cb1a9679e074da901b1f1 # Parent 5e001896900394a4ce5ff3d0c7dcfde1178f4578 Ensure data files used as import sources don't end up in Recent Files diff -r 5e0018969003 -r 22e455beee3b framework/MainWindowBase.cpp --- a/framework/MainWindowBase.cpp Wed Sep 12 13:57:46 2018 +0100 +++ b/framework/MainWindowBase.cpp Wed Sep 12 15:42:33 2018 +0100 @@ -1714,12 +1714,16 @@ } updateMenuStates(); - m_recentFiles.addFile(source.getLocation()); + + if (registerSource) { + m_recentFiles.addFile(source.getLocation()); + } if (!source.isRemote() && registerSource) { // for file dialog registerLastOpenedFilePath(FileFinder::AudioFile, source.getLocalFilename()); } + m_openingAudioFile = false; currentPaneChanged(m_paneStack->getCurrentPane());