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
|
||||
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 a new issue