summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-01-15 23:10:04 +0100
committerCarl Hetherington <cth@carlh.net>2023-01-16 13:46:04 +0100
commit9fe8b3599b3dc2fa554dd29d1788145f9237faa4 (patch)
treecab2c5ae3286d5d4069311221ad323533de82cfc /src
parenta8c53b9b792a8740cbf856d784e7643623c4359c (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/wx/screens_panel.cc4
1 files changed, 4 insertions, 0 deletions
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();
}