comparison main/MainWindow.cpp @ 422:37fb42c2d0e7 templating

Change ReplaceMainModel to ReplaceSession for templating branch purposes
author Chris Cannam
date Thu, 28 Apr 2011 15:31:14 +0100
parents 07fbfba541b0
children 97cd3d2c032a
comparison
equal deleted inserted replaced
421:07fbfba541b0 422:37fb42c2d0e7
2675 2675
2676 QString path = getOpenFileName(FileFinder::AnyFile); 2676 QString path = getOpenFileName(FileFinder::AnyFile);
2677 2677
2678 if (path.isEmpty()) return; 2678 if (path.isEmpty()) return;
2679 2679
2680 FileOpenStatus status = open(path, ReplaceMainModel); 2680 FileOpenStatus status = open(path, ReplaceSession);
2681 2681
2682 if (status == FileOpenFailed) { 2682 if (status == FileOpenFailed) {
2683 emit hideSplash(); 2683 emit hideSplash();
2684 QMessageBox::critical(this, tr("Failed to open file"), 2684 QMessageBox::critical(this, tr("Failed to open file"),
2685 tr("<b>File open failed</b><p>File \"%1\" could not be opened").arg(path)); 2685 tr("<b>File open failed</b><p>File \"%1\" could not be opened").arg(path));
2735 } 2735 }
2736 2736
2737 QString path = action->text(); 2737 QString path = action->text();
2738 if (path == "") return; 2738 if (path == "") return;
2739 2739
2740 FileOpenStatus status = open(path, ReplaceMainModel); 2740 FileOpenStatus status = open(path, ReplaceSession);
2741 2741
2742 if (status == FileOpenFailed) { 2742 if (status == FileOpenFailed) {
2743 emit hideSplash(); 2743 emit hideSplash();
2744 QMessageBox::critical(this, tr("Failed to open location"), 2744 QMessageBox::critical(this, tr("Failed to open location"),
2745 tr("<b>Open failed</b><p>File or URL \"%1\" could not be opened").arg(path)); 2745 tr("<b>Open failed</b><p>File or URL \"%1\" could not be opened").arg(path));