From: Carl Hetherington Date: Sun, 15 Jan 2023 22:10:04 +0000 (+0100) Subject: Manually call selection_changed() after removing a screen (#2418). X-Git-Tag: v2.16.41~36 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=9fe8b3599b3dc2fa554dd29d1788145f9237faa4 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. --- 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(); }