summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-10-30 19:53:02 +0000
committerCarl Hetherington <cth@carlh.net>2016-11-08 11:20:53 +0000
commit5ece03888d29137a6bd78c3781bc04b4f2fc0d89 (patch)
tree0cd85879941610b321b6773ec27afda6631e47c1 /src
parent1cc739a4035e4c05a50e2e9901a96ec5ebaefc2f (diff)
Provide correct parent to dialogue box to avoid z-order problems under OS X (part of #979).
Diffstat (limited to 'src')
-rw-r--r--src/wx/screens_panel.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wx/screens_panel.cc b/src/wx/screens_panel.cc
index 042fcc5ab..000a85128 100644
--- a/src/wx/screens_panel.cc
+++ b/src/wx/screens_panel.cc
@@ -147,7 +147,7 @@ ScreensPanel::add_screen (shared_ptr<Cinema> c, shared_ptr<Screen> s)
void
ScreensPanel::add_cinema_clicked ()
{
- CinemaDialog* d = new CinemaDialog (this, _("Add Cinema"));
+ CinemaDialog* d = new CinemaDialog (GetParent(), _("Add Cinema"));
if (d->ShowModal () == wxID_OK) {
shared_ptr<Cinema> c (new Cinema (d->name(), d->emails(), d->notes(), d->utc_offset_hour(), d->utc_offset_minute()));
Config::instance()->add_cinema (c);