comparison src/main.cpp @ 103:a9491d167efa

README and COPYING files
author Chris Cannam
date Fri, 06 Dec 2013 16:51:10 +0000
parents 0ac07b743cad
children 38d726399c90
comparison
equal deleted inserted replaced
102:0ac07b743cad 103:a9491d167efa
279 { 279 {
280 static bool haveSession = false; 280 static bool haveSession = false;
281 static bool haveMainModel = false; 281 static bool haveMainModel = false;
282 static bool havePriorCommandLineModel = false; 282 static bool havePriorCommandLineModel = false;
283 283
284 if (!m_mainWindow) return;
285
284 MainWindow::FileOpenStatus status = MainWindow::FileOpenFailed; 286 MainWindow::FileOpenStatus status = MainWindow::FileOpenFailed;
285 287
286 if (path.endsWith("ton")) { 288 if (path.endsWith("ton")) {
287 if (!haveSession) { 289 if (!haveSession) {
288 status = m_mainWindow->openSessionFile(path); 290 status = m_mainWindow->openSessionFile(path);