diff --git a/mainwindow.cpp b/mainwindow.cpp index eb6511e29..c78828fe6 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -807,7 +807,7 @@ void MainWindow::closeEvent(QCloseEvent *e) { } void MainWindow::paintEvent(QPaintEvent *event) { - QMainWindow::paintEvent(event); + QMainWindow::paintEvent(event); if (first_show) { first_show = false; diff --git a/oliveglobal.cpp b/oliveglobal.cpp index a3b31bc02..910c6c687 100644 --- a/oliveglobal.cpp +++ b/oliveglobal.cpp @@ -207,10 +207,21 @@ void OliveGlobal::open_export_dialog() { } void OliveGlobal::finished_initialize() { - // if a project was set as a command line argument, we load it here if (enable_load_project_on_init) { - open_project_worker(Olive::ActiveProjectFilename, false); + + // if a project was set as a command line argument, we load it here + if (QFileInfo::exists(Olive::ActiveProjectFilename)) { + open_project_worker(Olive::ActiveProjectFilename, false); + } else { + QMessageBox::critical(Olive::MainWindow, + tr("Missing Project File"), + tr("Specified project '%1' does not exist.").arg(Olive::ActiveProjectFilename), + QMessageBox::Ok); + update_project_filename(nullptr); + } + enable_load_project_on_init = false; + } else { // if we are not loading a project on launch and are running a release build, open the demo notice dialog #ifndef QT_DEBUG