Manually call selection_changed() after removing a screen (#2418).
authorCarl Hetherington <cth@carlh.net>
Sun, 15 Jan 2023 22:10:04 +0000 (23:10 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 16 Jan 2023 12:46:04 +0000 (13:46 +0100)
This is called by the signal handler on Linux but not on Windows,
for some reason.

src/wx/screens_panel.cc

index ad000d988772d5d85583f25b7976498c4b5d9dc4..e80323fd18e5d4f208f3765f04b84b97fcf04fc9 100644 (file)
@@ -449,6 +449,10 @@ ScreensPanel::remove_screen_clicked ()
                _targets->DeleteItem(*item);
        }
 
+       /* This is called by the signal on Linux, but not it seems on Windows, so we call it ourselves
+        * as well.
+        */
+       selection_changed();
        notify_cinemas_changed();
 }