# HG changeset patch # User Chris Cannam # Date 1529487719 -3600 # Node ID d767bdf4879bbc2d0005e6e51f4997568e396c19 # Parent 021d42e6c8cb0757d6b7fe0a0cd0a487c5387805 Add a scary warning for incomplete session load diff -r 021d42e6c8cb -r d767bdf4879b framework/MainWindowBase.cpp --- 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();