From: Carl Hetherington Date: Sun, 30 Oct 2016 19:53:02 +0000 (+0000) Subject: Provide correct parent to dialogue box to avoid z-order problems under OS X (part... X-Git-Tag: v2.9.39~14 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=5ece03888d29137a6bd78c3781bc04b4f2fc0d89 Provide correct parent to dialogue box to avoid z-order problems under OS X (part of #979). --- 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 c, shared_ptr 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 c (new Cinema (d->name(), d->emails(), d->notes(), d->utc_offset_hour(), d->utc_offset_minute())); Config::instance()->add_cinema (c);