summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-10-30 21:38:50 +0000
committerCarl Hetherington <cth@carlh.net>2019-10-30 21:38:50 +0000
commitc51e34376ea3abe67d02be88ff3fbe9fe24cb5ef (patch)
tree7615be4bfa70a8be430a70be5d6b59f8718f2e8d /src
parent179830dcb881b99e7f1a5b9527f7889602ee548e (diff)
Remove an optimisation to not run the body of ContentPanel::check_selection
if it is called with an unchanged selection. It breaks updates of the available tabs when a OV is added to a VF DCP, or when a new CPL is chosen that has subs where the previous one did not. Backport from d038abd7a0dce09aa84101c45af5ec8e4086e64f in v2.15.x.
Diffstat (limited to 'src')
-rw-r--r--src/wx/content_panel.cc7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/wx/content_panel.cc b/src/wx/content_panel.cc
index d22e45401..18318d4b2 100644
--- a/src/wx/content_panel.cc
+++ b/src/wx/content_panel.cc
@@ -298,13 +298,6 @@ ContentPanel::item_selected ()
void
ContentPanel::check_selection ()
{
- if (_last_selected == selected()) {
- /* This was triggered by a re-build of the view but the selection
- did not really change.
- */
- return;
- }
-
_last_selected = selected ();
setup_sensitivity ();