fix unloaded blockdata when creating new map from layout
This commit is contained in:
parent
c2a033e3fe
commit
88f3997768
1 changed files with 1 additions and 0 deletions
|
@ -154,6 +154,7 @@ void NewMapPopup::on_pushButton_NewMap_Accept_clicked() {
|
||||||
group = this->ui->comboBox_NewMap_Group->currentText().remove("gMapGroup").toInt();
|
group = this->ui->comboBox_NewMap_Group->currentText().remove("gMapGroup").toInt();
|
||||||
newMap->layout = layout;
|
newMap->layout = layout;
|
||||||
newMap->layoutId = layout->id;
|
newMap->layoutId = layout->id;
|
||||||
|
project->loadMapLayout(newMap);
|
||||||
newMap->group_num = QString::number(group);
|
newMap->group_num = QString::number(group);
|
||||||
map = newMap;
|
map = newMap;
|
||||||
emit applied();
|
emit applied();
|
||||||
|
|
Loading…
Reference in a new issue