Remove an optimisation to not run the body of ContentPanel::check_selection
authorCarl Hetherington <cth@carlh.net>
Wed, 30 Oct 2019 21:38:50 +0000 (21:38 +0000)
committerCarl Hetherington <cth@carlh.net>
Wed, 30 Oct 2019 21:38:50 +0000 (21:38 +0000)
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.

src/wx/content_panel.cc

index d22e454016f9418a1121e6c24bd00d0b3bfe23b9..18318d4b2cceab04187fc42b16580f883359df2a 100644 (file)
@@ -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 ();