diff 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
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());