diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 6e7c091b..fe8e3359 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1024,8 +1024,7 @@ void MainWindow::drawMapListIcons(QAbstractItemModel *model) { } void MainWindow::updateMapList() { - QAbstractItemModel *model = ui->mapList->model(); - drawMapListIcons(model); + drawMapListIcons(mapListModel); } void MainWindow::on_action_Save_Project_triggered()