Project

General

Profile

Actions

Bug #1530

open

Qt client, Shortcuts options dialog, Reset button causes dialog to shrink

Added by Dean Brown 6 days ago. Updated 6 days ago.

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

1530.patch (3.82 KB) 1530.patch Dean Brown, 06/22/2025 03:32 AM
Actions #1

Updated by Dean Brown 6 days ago

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

Also available in: Atom PDF