Fix crash when closing project while editing table

This commit is contained in:
GriffinR 2024-08-27 18:02:01 -04:00
parent 0e9dacd159
commit 8880aca829

View file

@ -1109,6 +1109,7 @@ void MainWindow::clearProjectUI() {
// Clear map list // Clear map list
mapListModel->clear(); mapListModel->clear();
mapListIndexes.clear();
mapGroupItemsList->clear(); mapGroupItemsList->clear();
} }
@ -1125,6 +1126,7 @@ void MainWindow::sortMapList() {
ui->mapList->setUpdatesEnabled(false); ui->mapList->setUpdatesEnabled(false);
mapListModel->clear(); mapListModel->clear();
mapListIndexes.clear();
mapGroupItemsList->clear(); mapGroupItemsList->clear();
QStandardItem *root = mapListModel->invisibleRootItem(); QStandardItem *root = mapListModel->invisibleRootItem();