From e6d27dbfe364a7f74799a20cdb061320ebd4a894 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 3 Nov 2024 22:10:51 +0100 Subject: Remove some make_wx() that are not necessary. --- src/wx/controls.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/wx/controls.cc b/src/wx/controls.cc index 21423ff3a..5ddcfb6e5 100644 --- a/src/wx/controls.cc +++ b/src/wx/controls.cc @@ -378,10 +378,10 @@ Controls::setup_sensitivity () void Controls::timecode_clicked () { - auto dialog = make_wx(this, _viewer.position(), _film->video_frame_rate()); + PlayheadToTimecodeDialog dialog(this, _viewer.position(), _film->video_frame_rate()); - if (dialog->ShowModal() == wxID_OK) { - _viewer.seek(dialog->get(), true); + if (dialog.ShowModal() == wxID_OK) { + _viewer.seek(dialog.get(), true); } } @@ -389,10 +389,10 @@ Controls::timecode_clicked () void Controls::frame_number_clicked () { - auto dialog = make_wx(this, _viewer.position(), _film->video_frame_rate()); + PlayheadToFrameDialog dialog(this, _viewer.position(), _film->video_frame_rate()); - if (dialog->ShowModal() == wxID_OK) { - _viewer.seek(dialog->get(), true); + if (dialog.ShowModal() == wxID_OK) { + _viewer.seek(dialog.get(), true); } } -- cgit v1.2.3