summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-19 12:03:54 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-19 15:12:22 +0300
commitf7458be2a303178017cc99017eafc649c50a0efc (patch)
tree690f017bf28fdd3772bf8d223c2c57958e093748 /src
parent4179da0ea3495768d00f2415089cab137bc1ec5e (diff)
downloadmanaverse-f7458be2a303178017cc99017eafc649c50a0efc.tar.gz
manaverse-f7458be2a303178017cc99017eafc649c50a0efc.tar.bz2
manaverse-f7458be2a303178017cc99017eafc649c50a0efc.tar.xz
manaverse-f7458be2a303178017cc99017eafc649c50a0efc.zip
in statuswindow remove from constuctors calls to virtual methods.
Diffstat (limited to 'src')
-rw-r--r--src/gui/windows/statuswindow.cpp6
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()