From f811f7e36339e1f0455d31b13dec0fe90c038809 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sat, 28 Nov 2015 18:28:33 -0800 Subject: [PATCH] Select the "Time" radio on startup --- src/subs_edit_box.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/subs_edit_box.cpp b/src/subs_edit_box.cpp index 517316809..07020c713 100644 --- a/src/subs_edit_box.cpp +++ b/src/subs_edit_box.cpp @@ -296,6 +296,7 @@ wxComboBox *SubsEditBox::MakeComboBox(wxString const& initial_text, int style, v wxRadioButton *SubsEditBox::MakeRadio(wxString const& text, bool start, wxString const& tooltip) { wxRadioButton *ctrl = new wxRadioButton(this, -1, text, wxDefaultPosition, wxDefaultSize, start ? wxRB_GROUP : 0); + ctrl->SetValue(start); ctrl->SetToolTip(tooltip); Bind(wxEVT_RADIOBUTTON, &SubsEditBox::OnFrameTimeRadio, this, ctrl->GetId()); middle_right_sizer->Add(ctrl, wxSizerFlags().Expand().Border(wxRIGHT));