mirror of
https://github.com/huderlem/porymap.git
synced 2026-10-02 12:56:38 -05:00
fix some map combos not being populated with new items
This commit is contained in:
@@ -1617,6 +1617,8 @@ void MainWindow::onNewMapCreated() {
|
||||
editor->project->saveMap(newMap);
|
||||
editor->project->saveAllDataStructures();
|
||||
|
||||
loadProjectCombos(); // need to maybe repopulate layout combo
|
||||
|
||||
// Add new Map / Layout to the mapList models
|
||||
this->mapGroupModel->insertMapItem(newMapName, editor->project->groupNames[newMapGroup]);
|
||||
this->mapAreaModel->insertMapItem(newMapName, newMap->location, newMapGroup);
|
||||
@@ -1760,6 +1762,8 @@ void MainWindow::on_actionNew_Tileset_triggered() {
|
||||
}
|
||||
insertTilesetLabel(&editor->project->tilesetLabelsOrdered, createTilesetDialog->fullSymbolName);
|
||||
|
||||
loadProjectCombos(); // need to reload tileset combos
|
||||
|
||||
QMessageBox msgBox(this);
|
||||
msgBox.setText("Successfully created tileset.");
|
||||
QString message = QString("Tileset \"%1\" was created successfully.").arg(createTilesetDialog->friendlyName);
|
||||
|
||||
Reference in New Issue
Block a user