summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-18 18:20:59 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-19 15:12:21 +0300
commit8413b6c8e43200e05538751a257b224018757911 (patch)
tree576a363c2a2dee914c966add2aa51e3f3ba9309d
parente79b5dec8f49d7585e9c3106e9321fee0e3386e9 (diff)
downloadplus-8413b6c8e43200e05538751a257b224018757911.tar.gz
plus-8413b6c8e43200e05538751a257b224018757911.tar.bz2
plus-8413b6c8e43200e05538751a257b224018757911.tar.xz
plus-8413b6c8e43200e05538751a257b224018757911.zip
add comments about virtual method calls in constructor in okdialog.
-rw-r--r--src/gui/windows/okdialog.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/windows/okdialog.cpp b/src/gui/windows/okdialog.cpp
index 49bf8aa0a..99c908563 100644
--- a/src/gui/windows/okdialog.cpp
+++ b/src/gui/windows/okdialog.cpp
@@ -65,6 +65,7 @@ OkDialog::OkDialog(const std::string &title, const std::string &msg,
okButton->setPosition((width - okButton->getWidth()) / 2,
mTextBox->getHeight() + getOption("buttonPadding", 8));
+ // +++ virtual method call
add(mTextBox);
add(okButton);
@@ -72,6 +73,7 @@ OkDialog::OkDialog(const std::string &title, const std::string &msg,
center();
else
centerHorisontally();
+ // +++ virtual method call
setVisible(true);
okButton->requestFocus();