X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fwx%2Frepeat_dialog.cc;h=aabde4616a2cc90fb86a005a42fcf87ade448573;hb=736d6bf3242a0ba3841cb765e97cf9fee3540460;hp=574dcd1c0cdab38a4967ee48ca51dd5d96e6ef36;hpb=854f2e5bbb7ffb9758b823af87034033033f3cb8;p=dcpomatic.git diff --git a/src/wx/repeat_dialog.cc b/src/wx/repeat_dialog.cc index 574dcd1c0..aabde4616 100644 --- a/src/wx/repeat_dialog.cc +++ b/src/wx/repeat_dialog.cc @@ -1,19 +1,20 @@ /* Copyright (C) 2013-2014 Carl Hetherington - This program is free software; you can redistribute it and/or modify + This file is part of DCP-o-matic. + + DCP-o-matic is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, + DCP-o-matic is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + along with DCP-o-matic. If not, see . */ @@ -21,7 +22,7 @@ #include "wx_util.h" RepeatDialog::RepeatDialog (wxWindow* parent) - : TableDialog (parent, _("Repeat Content"), 3, true) + : TableDialog (parent, _("Repeat Content"), 3, 1, true) { add (_("Repeat"), true); _number = add (new wxSpinCtrl (this, wxID_ANY)); @@ -30,6 +31,8 @@ RepeatDialog::RepeatDialog (wxWindow* parent) _number->SetRange (1, 1024); layout (); + + _number->SetFocus (); } int