mirror of
https://github.com/huderlem/porymap.git
synced 2026-04-25 07:18:02 -05:00
Fix crash when closing project while editing table
This commit is contained in:
parent
0e9dacd159
commit
8880aca829
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user