From: Mikko Rasa Date: Fri, 6 Feb 2015 22:00:58 +0000 (+0200) Subject: Initialize clock rate field with the current rate X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=b3f8467442aac111e9a316db0dda67d37ae240b8;p=r2c2.git Initialize clock rate field with the current rate --- diff --git a/source/engineer/clockdialog.cpp b/source/engineer/clockdialog.cpp index 18d5b93..c156013 100644 --- a/source/engineer/clockdialog.cpp +++ b/source/engineer/clockdialog.cpp @@ -18,6 +18,7 @@ ClockDialog::ClockDialog(Engineer &engineer): GLtk::Button *button = dynamic_cast(get_item(widgets, "btn_rate")); button->signal_clicked.connect(sigc::mem_fun(this, &ClockDialog::set_rate)); ent_rate = dynamic_cast(get_item(widgets, "ent_rate")); + ent_rate->set_text(lexical_cast(clock.get_rate())); button = dynamic_cast(get_item(widgets, "btn_stop")); button->signal_clicked.connect(sigc::mem_fun(this, &ClockDialog::stop_clicked));