From b3f8467442aac111e9a316db0dda67d37ae240b8 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 7 Feb 2015 00:00:58 +0200 Subject: [PATCH] Initialize clock rate field with the current rate --- source/engineer/clockdialog.cpp | 1 + 1 file changed, 1 insertion(+) 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)); -- 2.45.2