Remove an optimisation to not run the body of ContentPanel::check_selection
authorCarl Hetherington <cth@carlh.net>
Mon, 14 Oct 2019 10:25:04 +0000 (12:25 +0200)
committerCarl Hetherington <cth@carlh.net>
Mon, 14 Oct 2019 10:25:04 +0000 (12:25 +0200)
if it is called with an unchanged selection.  It breaks updates
of the available tabs when a OV is added to a VF DCP.

src/wx/content_panel.cc

index f19887e59d1c9498187180840366efd75ae07774..e532e48249267a0eb3d941f2fe828f47fffb88c1 100644 (file)
@@ -300,13 +300,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;
-       }
-
        if (_no_check_selection) {
                return;
        }