mirror of
https://github.com/huderlem/porymap.git
synced 2026-03-21 17:45:44 -05:00
Fix Clear Map Entries in the region map editor
This commit is contained in:
parent
31718fef1b
commit
c9b7f471bb
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user