X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fplayhead_to_frame_dialog.cc;h=1ae049d26ce9ea2429bc57e189c21e6724b7f48b;hb=e8582393bd1367fff36bae8e053d799073d8b2ed;hp=462e3d5e1164c579bd918497c693fb8e714ad9d4;hpb=f015c70b101bd6d89eb34f9bc6e70d8e0638d12e;p=dcpomatic.git diff --git a/src/wx/playhead_to_frame_dialog.cc b/src/wx/playhead_to_frame_dialog.cc index 462e3d5e1..1ae049d26 100644 --- a/src/wx/playhead_to_frame_dialog.cc +++ b/src/wx/playhead_to_frame_dialog.cc @@ -19,7 +19,9 @@ */ #include "playhead_to_frame_dialog.h" -#include "lib/raw_convert.h" +#include + +using dcp::locale_convert; PlayheadToFrameDialog::PlayheadToFrameDialog (wxWindow* parent, int fps) : TableDialog (parent, _("Go to frame"), 2, 1, true) @@ -27,6 +29,7 @@ PlayheadToFrameDialog::PlayheadToFrameDialog (wxWindow* parent, int fps) { add (_("Go to"), true); _frame = add (new wxTextCtrl (this, wxID_ANY, wxT (""))); + _frame->SetFocus (); layout (); } @@ -34,5 +37,5 @@ PlayheadToFrameDialog::PlayheadToFrameDialog (wxWindow* parent, int fps) DCPTime PlayheadToFrameDialog::get () const { - return DCPTime::from_frames (raw_convert (wx_to_std (_frame->GetValue ())) - 1, _fps); + return DCPTime::from_frames (locale_convert (wx_to_std (_frame->GetValue ())) - 1, _fps); }