Provide correct parent to dialogue box to avoid z-order problems under OS X (part...
authorCarl Hetherington <cth@carlh.net>
Sun, 30 Oct 2016 19:53:02 +0000 (19:53 +0000)
committerCarl Hetherington <cth@carlh.net>
Tue, 8 Nov 2016 11:20:53 +0000 (11:20 +0000)
src/wx/screens_panel.cc

index 042fcc5ab58184b9f39041c800b03b4daa81f275..000a85128a342aeeed535e3d96ee79ed0cb13a28 100644 (file)
@@ -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);