Fix Clear Map Entries in the region map editor

This commit is contained in:
GriffinR 2025-10-07 08:09:45 -04:00
parent 31718fef1b
commit c9b7f471bb
3 changed files with 5 additions and 4 deletions

View File

@ -14,6 +14,7 @@ and this project somewhat adheres to [Semantic Versioning](https://semver.org/sp
### Fixed
- Fix rare crash while quitting Porymap.
- Fix `Edit > Clear Map Entries` in the Region Map Editor not saving the applied changes.
- Fix exported images on macOS using a different color space than in Porymap.
- Fix some `INCBIN` statements not being parsed correctly.
- Fix excessive logging if Porymap fails to monitor all map files.

View File

@ -2652,8 +2652,8 @@ bool Project::readRegionMapSections() {
}
void Project::setRegionMapEntries(const QHash<QString, MapSectionEntry> &entries) {
for (auto it = entries.constBegin(); it != entries.constEnd(); it++) {
this->locationData[it.key()].map = it.value();
for (auto it = this->locationData.keyBegin(); it != this->locationData.keyEnd(); it++) {
this->locationData[*it].map = entries.value(*it);
}
}

View File

@ -1190,7 +1190,7 @@ void RegionMapEditor::on_action_RegionMap_ClearLayout_triggered() {
QMessageBox::StandardButton result = QMessageBox::question(
this,
"WARNING",
QString("This action will reset the entire map layout to %1, continue?").arg(this->region_map->default_map_section),
QString("This action will reset the entire map layout to %1. Continue?").arg(this->region_map->default_map_section),
QMessageBox::Yes | QMessageBox::Cancel,
QMessageBox::Yes
);
@ -1212,7 +1212,7 @@ void RegionMapEditor::on_action_RegionMap_ClearEntries_triggered() {
QMessageBox::StandardButton result = QMessageBox::question(
this,
"WARNING",
"This action will remove the entire mapsection entries list, continue?",
"This action will clear all the data on the Map Entries tab. Continue?",
QMessageBox::Yes | QMessageBox::Cancel,
QMessageBox::Yes
);