Mercurial > hg > svapp
comparison framework/MainWindowBase.cpp @ 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 |
comparison
equal
deleted
inserted
replaced
601:021d42e6c8cb | 602:d767bdf4879b |
---|---|
2102 // don't have a local path to save to, but we also don't | 2102 // don't have a local path to save to, but we also don't |
2103 // want to do it if we failed to find an audio file or | 2103 // want to do it if we failed to find an audio file or |
2104 // similar on load, as the audio reference would then end | 2104 // similar on load, as the audio reference would then end |
2105 // up being lost from any saved or auto-saved-on-exit copy | 2105 // up being lost from any saved or auto-saved-on-exit copy |
2106 m_sessionFile = source.getLocalFilename(); | 2106 m_sessionFile = source.getLocalFilename(); |
2107 } else { | |
2108 QMessageBox::warning | |
2109 (this, | |
2110 tr("Incomplete session loaded"), | |
2111 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."), | |
2112 QMessageBox::Ok); | |
2107 } | 2113 } |
2108 | 2114 |
2109 setupMenus(); | 2115 setupMenus(); |
2110 findTimeRulerLayer(); | 2116 findTimeRulerLayer(); |
2111 | 2117 |