X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Frename_template_dialog.cc;h=714e080579893a57c4e2d587c647eea51b6cd9e1;hb=8fe1cc5b89408c8aaba79e04cc4d0c271931b099;hp=6651d09231025af69ae7dd0f3a2fe8f84f7a12a6;hpb=73407f943ba25e2a0df2c98b3a9a938132876e9f;p=dcpomatic.git diff --git a/src/wx/rename_template_dialog.cc b/src/wx/rename_template_dialog.cc index 6651d0923..714e08057 100644 --- a/src/wx/rename_template_dialog.cc +++ b/src/wx/rename_template_dialog.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2016 Carl Hetherington + Copyright (C) 2016-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,22 +18,28 @@ */ + #include "rename_template_dialog.h" + RenameTemplateDialog::RenameTemplateDialog (wxWindow* parent) : TableDialog (parent, _("Rename template"), 2, 1, true) { add (_("New name"), true); - _name = add (new wxTextCtrl (this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize (300, -1))); + _name = add (new wxTextCtrl(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(300, -1))); layout (); + + _name->SetFocus (); } + wxString RenameTemplateDialog::get () const { return _name->GetValue (); } + void RenameTemplateDialog::set (wxString s) {