diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-19 12:03:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-19 15:12:22 +0300 |
commit | f7458be2a303178017cc99017eafc649c50a0efc (patch) | |
tree | 690f017bf28fdd3772bf8d223c2c57958e093748 /src | |
parent | 4179da0ea3495768d00f2415089cab137bc1ec5e (diff) | |
download | manaplus-f7458be2a303178017cc99017eafc649c50a0efc.tar.gz manaplus-f7458be2a303178017cc99017eafc649c50a0efc.tar.bz2 manaplus-f7458be2a303178017cc99017eafc649c50a0efc.tar.xz manaplus-f7458be2a303178017cc99017eafc649c50a0efc.zip |
in statuswindow remove from constuctors calls to virtual methods.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/windows/statuswindow.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
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() |