fix unloaded blockdata when creating new map from layout

This commit is contained in:
garak 2019-02-08 16:58:56 -05:00 committed by huderlem
parent c2a033e3fe
commit 5ffd6d84e4

View file

@ -154,6 +154,7 @@ void NewMapPopup::on_pushButton_NewMap_Accept_clicked() {
group = this->ui->comboBox_NewMap_Group->currentText().remove("gMapGroup").toInt();
newMap->layout = layout;
newMap->layoutId = layout->id;
project->loadMapLayout(newMap);
newMap->group_num = QString::number(group);
map = newMap;
emit applied();