fix new map layout dir creation and erroneous error
This commit is contained in:
parent
3e39ebccdf
commit
ee5d85b171
1 changed files with 2 additions and 1 deletions
|
@ -131,6 +131,7 @@ void NewMapPopup::on_pushButton_NewMap_Accept_clicked() {
|
|||
|
||||
if (this->existingLayout) {
|
||||
layout = this->project->mapLayouts.value(this->layoutId);
|
||||
newMap->needsLayoutDir = false;
|
||||
} else {
|
||||
layout = new MapLayout;
|
||||
layout->id = MapLayout::layoutConstantFromName(newMapName);
|
||||
|
@ -156,7 +157,7 @@ void NewMapPopup::on_pushButton_NewMap_Accept_clicked() {
|
|||
group = project->groupNames->indexOf(this->ui->comboBox_NewMap_Group->currentText());
|
||||
newMap->layout = layout;
|
||||
newMap->layoutId = layout->id;
|
||||
project->loadMapLayout(newMap);
|
||||
if (this->existingLayout) project->loadMapLayout(newMap);
|
||||
newMap->group_num = QString::number(group);
|
||||
map = newMap;
|
||||
emit applied();
|
||||
|
|
Loading…
Reference in a new issue