specify file on opening error

master
zetaPRIME 2022-03-13 17:53:48 -04:00
parent 638c7e5c12
commit 70a6edf824
1 changed files with 1 additions and 1 deletions

View File

@ -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();