Actions
Bug #1530
openQt client, Shortcuts options dialog, Reset button causes dialog to shrink
Status:
New
Priority:
Normal
Assignee:
-
Category:
Qt-client
Target version:
-
Start date:
06/22/2025
Due date:
% Done:
0%
Estimated time:
Description
Seen with QT5 on Mac, 3.1 and 3.2
Game->Options->Shortcuts, from the Shortcuts options dialog press Reset button, the dialog shrinks vertically.
Files
Updated by Dean Brown 6 days ago
- File 1530.patch 1530.patch added
Pushing Reset button causes call to fc_shortcuts_dialog::refresh(), which calls fc_shortcuts_dialog::init(). When init() is called the first time from the constructor, the call to sizeHint() gives a reasonable value, but when called from refresh() gives bogus (22,22). I rewrote refresh() to just clear and reset the scroll_layout and not call init(). Also refactored code with new method fc_shortcuts_dialog::populate_scroll_layout().
Actions