From 8880aca829aa317f53b5655e18f478045336d886 Mon Sep 17 00:00:00 2001 From: GriffinR Date: Tue, 27 Aug 2024 18:02:01 -0400 Subject: [PATCH] Fix crash when closing project while editing table --- src/mainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index c4e23b81..f342396f 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1109,6 +1109,7 @@ void MainWindow::clearProjectUI() { // Clear map list mapListModel->clear(); + mapListIndexes.clear(); mapGroupItemsList->clear(); } @@ -1125,6 +1126,7 @@ void MainWindow::sortMapList() { ui->mapList->setUpdatesEnabled(false); mapListModel->clear(); + mapListIndexes.clear(); mapGroupItemsList->clear(); QStandardItem *root = mapListModel->invisibleRootItem();