From 086338e4574d0b5ce14cecb23911a05036f93c9f Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 15 Nov 2020 23:15:57 +0100 Subject: [PATCH] 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. --- src/wx/language_tag_dialog.cc | 5 +++++ 1 file changed, 5 insertions(+) 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); + } } } -- 2.30.2