summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();