X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fplayhead_to_frame_dialog.cc;h=4c8bc1cc6ede06f9ca03014808684517dfb68743;hb=63c1bbc1ba177600523b2257223070cc2dbde7b7;hp=af20c159268c352b4a60f7cae3277c7018647306;hpb=73654117144c6de0ec4efe39ddc88485df546cc9;p=dcpomatic.git diff --git a/src/wx/playhead_to_frame_dialog.cc b/src/wx/playhead_to_frame_dialog.cc index af20c1592..4c8bc1cc6 100644 --- a/src/wx/playhead_to_frame_dialog.cc +++ b/src/wx/playhead_to_frame_dialog.cc @@ -19,9 +19,10 @@ */ #include "playhead_to_frame_dialog.h" -#include +#include -using dcp::raw_convert; +using dcp::locale_convert; +using namespace dcpomatic; PlayheadToFrameDialog::PlayheadToFrameDialog (wxWindow* parent, int fps) : TableDialog (parent, _("Go to frame"), 2, 1, true) @@ -29,6 +30,7 @@ PlayheadToFrameDialog::PlayheadToFrameDialog (wxWindow* parent, int fps) { add (_("Go to"), true); _frame = add (new wxTextCtrl (this, wxID_ANY, wxT (""))); + _frame->SetFocus (); layout (); } @@ -36,5 +38,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); }