diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-11-15 23:15:57 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-11-15 23:15:57 +0100 |
| commit | 086338e4574d0b5ce14cecb23911a05036f93c9f (patch) | |
| tree | 6f610dec2fe9a6dd96973587dd887976f347cce8 | |
| parent | d53acba795613b4adea62017561599fbf1d6d96d (diff) | |
Fix invisible subtag lists in some cases.
On Debian 10 / GTK3 (at least) sometimes when you add a new subtag
the searchable list isn't displayed until you scroll it a little.
This hack seems to fix that.
| -rw-r--r-- | src/wx/language_tag_dialog.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wx/language_tag_dialog.cc b/src/wx/language_tag_dialog.cc index 0d0203e90..1c3ab2f30 100644 --- a/src/wx/language_tag_dialog.cc +++ b/src/wx/language_tag_dialog.cc @@ -70,6 +70,11 @@ public: SetItemState (item, wxLIST_STATE_SELECTED, wxLIST_STATE_SELECTED); EnsureVisible (item); } + } else { + if (GetItemCount() > 0) { + /* The new list sometimes isn't visible without this */ + EnsureVisible (0); + } } } |
