Skip to content

Commit

Permalink
Forbid toggling the minimap from the city view
Browse files Browse the repository at this point in the history
It's never visible, so the menu would do nothing. The implementation is also
buggy when triggered while the widget is hidden.

Closes longturn#1126.
  • Loading branch information
lmoureaux committed Aug 26, 2022
1 parent c678ca2 commit 30e14f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/citydlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1475,6 +1475,7 @@ void city_dialog::hideEvent(QHideEvent *event)
pcity = nullptr;
}
queen()->mapview_wdg->show_all_fcwidgets();
king()->menu_bar->minimap_status->setEnabled(true);
}

/**
Expand All @@ -1487,6 +1488,7 @@ void city_dialog::showEvent(QShowEvent *event)
if (pcity) {
unit_focus_set(nullptr);
update_map_canvas_visible();
king()->menu_bar->minimap_status->setEnabled(false);
}
}

Expand Down

0 comments on commit 30e14f5

Please sign in to comment.