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