fix new map popup population issue

This commit is contained in:
garak 2023-10-27 11:16:21 -04:00
parent 6041c46abf
commit 263e45fe20
2 changed files with 2 additions and 0 deletions

View file

@ -1269,6 +1269,7 @@ void MainWindow::openNewMapPopupWindow() {
void MainWindow::on_action_NewMap_triggered() {
openNewMapPopupWindow();
this->newMapPrompt->initUi();
this->newMapPrompt->init();
}

View file

@ -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);