]> git.tdb.fi Git - r2c2.git/commitdiff
Initialize clock rate field with the current rate
authorMikko Rasa <tdb@tdb.fi>
Fri, 6 Feb 2015 22:00:58 +0000 (00:00 +0200)
committerMikko Rasa <tdb@tdb.fi>
Fri, 6 Feb 2015 22:00:58 +0000 (00:00 +0200)
source/engineer/clockdialog.cpp

index 18d5b9334da54ef508810d0b1ade68d97b827469..c156013861e0e817dfc6e8eda5e84f50544bb864 100644 (file)
@@ -18,6 +18,7 @@ ClockDialog::ClockDialog(Engineer &engineer):
        GLtk::Button *button = dynamic_cast<GLtk::Button *>(get_item(widgets, "btn_rate"));
        button->signal_clicked.connect(sigc::mem_fun(this, &ClockDialog::set_rate));
        ent_rate = dynamic_cast<GLtk::Entry *>(get_item(widgets, "ent_rate"));
+       ent_rate->set_text(lexical_cast<string>(clock.get_rate()));
 
        button = dynamic_cast<GLtk::Button *>(get_item(widgets, "btn_stop"));
        button->signal_clicked.connect(sigc::mem_fun(this, &ClockDialog::stop_clicked));