From 9fe8b3599b3dc2fa554dd29d1788145f9237faa4 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 15 Jan 2023 23:10:04 +0100 Subject: [PATCH] Manually call selection_changed() after removing a screen (#2418). This is called by the signal handler on Linux but not on Windows, for some reason. --- src/wx/screens_panel.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wx/screens_panel.cc b/src/wx/screens_panel.cc index ad000d988..e80323fd1 100644 --- a/src/wx/screens_panel.cc +++ b/src/wx/screens_panel.cc @@ -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(); } -- 2.30.2