X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Ftiming_panel.cc;h=890049ae92826657d66e5a602c8e6aa4787ab04b;hb=e87f943433216d294b22853411eca5c582be1066;hp=732cd07d50a880b57aa66f4cd15fc4f3a6a7d38f;hpb=5800e1f2abecb709cbdc1408d1328f29cdbcb370;p=dcpomatic.git diff --git a/src/wx/timing_panel.cc b/src/wx/timing_panel.cc index 732cd07d5..890049ae9 100644 --- a/src/wx/timing_panel.cc +++ b/src/wx/timing_panel.cc @@ -507,8 +507,7 @@ TimingPanel::move_to_start_of_reel_clicked () } } - auto d = new MoveToDialog(this, position, _parent->film()); - ScopeGuard sg = [d]() { d->Destroy(); }; + auto d = make_wx(this, position, _parent->film()); if (d->ShowModal() == wxID_OK) { for (auto i: _parent->selected()) {