summaryrefslogtreecommitdiff
path: root/src/gui/textdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/textdialog.cpp')
-rw-r--r--src/gui/textdialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/textdialog.cpp b/src/gui/textdialog.cpp
index 5a19637e5..e4784d602 100644
--- a/src/gui/textdialog.cpp
+++ b/src/gui/textdialog.cpp
@@ -42,13 +42,13 @@ TextDialog::TextDialog(const std::string &title, const std::string &msg,
gcn::ActionListener(),
mTextField(nullptr),
mPasswordField(nullptr),
- mOkButton(new Button(_("OK"), "OK", this)),
+ mOkButton(new Button(this, _("OK"), "OK", this)),
mEnabledKeyboard(keyboard.isEnabled())
{
keyboard.setEnabled(false);
Label *const textLabel = new Label(msg);
- Button *const cancelButton = new Button(_("Cancel"), "CANCEL", this);
+ Button *const cancelButton = new Button(this, _("Cancel"), "CANCEL", this);
place(0, 0, textLabel, 4);
if (isPassword)