diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 7299ee13..4efc3270 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -399,7 +399,9 @@ void MainWindow::on_action_Open_Project_triggered() } QString dir = getExistingDirectory(recent); if (!dir.isEmpty()) { - Scripting::cb_ProjectClosed(this->editor->project->root); + if (this->editor && this->editor->project) { + Scripting::cb_ProjectClosed(this->editor->project->root); + } porymapConfig.setRecentProject(dir); if (!openProject(dir)) { this->initWindow();