Fix crash when closing project while editing table
This commit is contained in:
parent
0e9dacd159
commit
8880aca829
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue