changeset 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 5e0018969003
children 9e15607531b2
files framework/MainWindowBase.cpp
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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());