X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Ftiming_panel.cc;h=47019487f8324ed19df12dec0d0aabb86e94a968;hb=5ee919f413a6c1048aecf83676d42ab3fd94e06e;hp=732cd07d50a880b57aa66f4cd15fc4f3a6a7d38f;hpb=5800e1f2abecb709cbdc1408d1328f29cdbcb370;p=dcpomatic.git diff --git a/src/wx/timing_panel.cc b/src/wx/timing_panel.cc index 732cd07d5..47019487f 100644 --- a/src/wx/timing_panel.cc +++ b/src/wx/timing_panel.cc @@ -26,6 +26,7 @@ #include "static_text.h" #include "timecode.h" #include "timing_panel.h" +#include "wx_ptr.h" #include "wx_util.h" #include "lib/audio_content.h" #include "lib/content.h" @@ -507,8 +508,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()) {