Mercurial > hg > svapp
diff framework/MainWindowBase.cpp @ 373:024226dd9f51
Give these two functions different names, not just different arg lists
author | Chris Cannam |
---|---|
date | Thu, 19 Jun 2014 14:43:41 +0100 |
parents | f1cab64363d7 |
children | 534bd1def9ee |
line wrap: on
line diff
--- a/framework/MainWindowBase.cpp Wed Jun 18 13:51:38 2014 +0100 +++ b/framework/MainWindowBase.cpp Thu Jun 19 14:43:41 2014 +0100 @@ -1120,8 +1120,9 @@ } MainWindowBase::FileOpenStatus -MainWindowBase::open(QString fileOrUrl, AudioFileOpenMode mode) +MainWindowBase::openPath(QString fileOrUrl, AudioFileOpenMode mode) { + cerr << "MainWindowBase::openPath(" << fileOrUrl << ")" << endl; ProgressDialog dialog(tr("Opening file or URL..."), true, 2000, this); connect(&dialog, SIGNAL(showing()), this, SIGNAL(hideSplash())); return open(FileSource(fileOrUrl, &dialog), mode); @@ -1146,6 +1147,8 @@ bool audio = AudioFileReaderFactory::getKnownExtensions().contains (source.getExtension().toLower()); + cerr << "MainWindowBase::open(" << source.getLocalFilename() << ": audio = " << audio << endl; + bool rdfSession = false; if (rdf) { RDFImporter::RDFDocumentType rdfType = @@ -1204,7 +1207,7 @@ MainWindowBase::openAudio(FileSource source, AudioFileOpenMode mode, QString templateName) { -// SVDEBUG << "MainWindowBase::openAudio(" << source.getLocation() << ")" << endl; + cerr << "MainWindowBase::openAudio(" << source.getLocation() << ")" << endl; if (templateName == "") { templateName = getDefaultSessionTemplate(); @@ -1672,7 +1675,7 @@ } MainWindowBase::FileOpenStatus -MainWindowBase::openSessionFile(QString fileOrUrl) +MainWindowBase::openSessionPath(QString fileOrUrl) { ProgressDialog dialog(tr("Opening session..."), true, 2000, this); connect(&dialog, SIGNAL(showing()), this, SIGNAL(hideSplash()));