specify file on opening error
parent
638c7e5c12
commit
70a6edf824
|
@ -550,7 +550,7 @@ bool MainWindow::eventFilter(QObject *obj [[maybe_unused]], QEvent *event) {
|
|||
void MainWindow::openProject(const QString& fileName, bool failSilent) {
|
||||
auto np = FileOps::loadProject(fileName);
|
||||
if (!np) {
|
||||
if (!failSilent) QMessageBox::critical(this, "Error", "Error loading project");
|
||||
if (!failSilent) QMessageBox::critical(this, qs("Error"), qs("Error loading project \"%1\".").arg(QFileInfo(fileName).fileName()));
|
||||
return;
|
||||
}
|
||||
if (audioEngine->playingProject() == project) audioEngine->stop();
|
||||
|
|
Loading…
Reference in New Issue