From 23a20dd736b02f0ce383bd1414b4e8c013645b9e Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Wed, 13 May 2020 16:16:51 -0500 Subject: [PATCH] Clear scripting map overlay when closing project --- src/mainwindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index f721b877..7afdc8a1 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -402,6 +402,7 @@ void MainWindow::on_action_Open_Project_triggered() if (!dir.isEmpty()) { if (this->editor && this->editor->project) { Scripting::cb_ProjectClosed(this->editor->project->root); + this->ui->graphicsView_Map->overlay.clearItems(); } porymapConfig.setRecentProject(dir); if (!openProject(dir)) {