From 263e45fe200bd97b6a49e8441050221a3c305c09 Mon Sep 17 00:00:00 2001 From: garak Date: Fri, 27 Oct 2023 11:16:21 -0400 Subject: [PATCH] fix new map popup population issue --- src/mainwindow.cpp | 1 + src/ui/newmappopup.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 39494686..692509f9 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1269,6 +1269,7 @@ void MainWindow::openNewMapPopupWindow() { void MainWindow::on_action_NewMap_triggered() { openNewMapPopupWindow(); + this->newMapPrompt->initUi(); this->newMapPrompt->init(); } diff --git a/src/ui/newmappopup.cpp b/src/ui/newmappopup.cpp index 3da703a7..95a22f9d 100644 --- a/src/ui/newmappopup.cpp +++ b/src/ui/newmappopup.cpp @@ -121,6 +121,7 @@ void NewMapPopup::init(MapSortOrder type, QVariant data) { // Creating new map from AdvanceMap import void NewMapPopup::init(Layout *mapLayout) { + initUi(); this->importedMap = true; useLayoutSettings(mapLayout);