Merge branch 'v2.15.x' of ssh://main.carlh.net/home/carl/git/dcpomatic into v2.15.x
[dcpomatic.git] / src / wx / playhead_to_frame_dialog.cc
index 137be60ae7c0c8e96134e54cae47c9d98f87233d..4c8bc1cc6ede06f9ca03014808684517dfb68743 100644 (file)
@@ -22,6 +22,7 @@
 #include <dcp/locale_convert.h>
 
 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 ();
 }