changeset 602:d767bdf4879b

Add a scary warning for incomplete session load
author Chris Cannam
date Wed, 20 Jun 2018 10:41:59 +0100
parents 021d42e6c8cb
children d4c16eed673d
files framework/MainWindowBase.cpp
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/framework/MainWindowBase.cpp	Mon Jun 18 14:16:06 2018 +0100
+++ b/framework/MainWindowBase.cpp	Wed Jun 20 10:41:59 2018 +0100
@@ -2104,6 +2104,12 @@
             // similar on load, as the audio reference would then end
             // up being lost from any saved or auto-saved-on-exit copy
             m_sessionFile = source.getLocalFilename();
+        } else {
+            QMessageBox::warning
+                (this,
+                 tr("Incomplete session loaded"),
+                 tr("Some of the audio content referred to by the original session file could not be found.\nIf you save this session, it will be saved without any reference to that audio, and information may be lost."),
+                 QMessageBox::Ok);
         }
 
         setupMenus();