From f7458be2a303178017cc99017eafc649c50a0efc Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 19 Oct 2013 12:03:54 +0300 Subject: in statuswindow remove from constuctors calls to virtual methods. --- src/gui/windows/statuswindow.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/gui/windows/statuswindow.cpp b/src/gui/windows/statuswindow.cpp index 87dc94e8e..80a65b1fd 100644 --- a/src/gui/windows/statuswindow.cpp +++ b/src/gui/windows/statuswindow.cpp @@ -465,11 +465,13 @@ void StatusWindow::addAttribute(const int id, const std::string &name, if (modifiable) { disp = new ChangeDisplay(this, id, name, shortName); + disp->update(); mAttrCont->add1(disp); } else { disp = new DerDisplay(this, id, name, shortName); + disp->update(); mDAttrCont->add1(disp); } mAttrs[id] = disp; @@ -784,8 +786,6 @@ DerDisplay::DerDisplay(const Widget2 *const widget, place(0, 0, mLabel, 3); place(3, 0, mValue, 2); - - update(); } ChangeDisplay::ChangeDisplay(const Widget2 *const widget, @@ -816,8 +816,6 @@ ChangeDisplay::ChangeDisplay(const Widget2 *const widget, place(3, 0, mDec); } - - update(); } std::string ChangeDisplay::update() -- cgit v1.2.3-70-g09d2