Mercurial > hg > svapp
changeset 386:105b4e237434
Debug out
author | Chris Cannam |
---|---|
date | Thu, 24 Jul 2014 17:43:49 +0100 |
parents | d1abf593dfaf |
children | a4c2a4685cf1 |
files | framework/MainWindowBase.cpp |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/framework/MainWindowBase.cpp Fri Jul 18 15:38:44 2014 +0100 +++ b/framework/MainWindowBase.cpp Thu Jul 24 17:43:49 2014 +0100 @@ -1220,7 +1220,7 @@ MainWindowBase::openAudio(FileSource source, AudioFileOpenMode mode, QString templateName) { - SVDEBUG << "MainWindowBase::openAudio(" << source.getLocation() << ")" << endl; + SVDEBUG << "MainWindowBase::openAudio(" << source.getLocation() << ") with mode " << mode << " and template " << templateName << endl; if (templateName == "") { templateName = getDefaultSessionTemplate(); @@ -1317,6 +1317,7 @@ } if (mode == CreateAdditionalModel && !getMainModel()) { + SVDEBUG << "Mode is CreateAdditionalModel but we have no main model, switching to ReplaceSession mode" << endl; mode = ReplaceSession; } @@ -1326,7 +1327,7 @@ if (!checkSaveModified()) return FileOpenCancelled; - cerr << "SV looking for template " << templateName << endl; + SVDEBUG << "SV looking for template " << templateName << endl; if (templateName != "") { FileOpenStatus tplStatus = openSessionTemplate(templateName); if (tplStatus == FileOpenCancelled) { @@ -1340,10 +1341,12 @@ } if (!loadedTemplate) { + SVDEBUG << "No template found: closing session, creating new empty document" << endl; closeSession(); createDocument(); } + SVDEBUG << "Now switching to ReplaceMainModel mode" << endl; mode = ReplaceMainModel; }