X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Ftools%2Fdcpomatic.cc;fp=src%2Ftools%2Fdcpomatic.cc;h=3d944e780a9358cbbe828e6d2f050d11d73ceaf6;hp=a7b3af8bce0999f44d4c420163988fccc72372ad;hb=293f82daa07bbc357940e5dd214f7c534bab0a86;hpb=e87f943433216d294b22853411eca5c582be1066 diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc index a7b3af8bc..3d944e780 100644 --- a/src/tools/dcpomatic.cc +++ b/src/tools/dcpomatic.cc @@ -1709,7 +1709,7 @@ private: } catch (exception& e) { - _splash.reset(); + close_splash(); error_dialog (nullptr, wxString::Format ("DCP-o-matic could not start."), std_to_wx(e.what())); } @@ -1821,7 +1821,8 @@ private: void close_splash () { - _splash.reset(); + _splash->Destroy(); + _splash = nullptr; } void config_failed_to_load (Config::LoadFailure what) @@ -1839,7 +1840,7 @@ private: /* Destroy the splash screen here, as otherwise bad things seem to happen (for reasons unknown) when we open our recreate dialog, close it, *then* try to Destroy the splash (the Destroy fails). */ - _splash.reset(); + close_splash(); auto config = Config::instance(); switch (reason) { @@ -1908,7 +1909,7 @@ private: } DOMFrame* _frame = nullptr; - wx_ptr _splash; + wxSplashScreen* _splash; shared_ptr _timer; string _film_to_load; string _film_to_create;