From 41adf71a823f475b7f12b00e06056b778311da84 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 20 Oct 2012 00:52:01 +0300 Subject: Add palette inheritance to button class. --- src/gui/textdialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/textdialog.cpp') 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) -- cgit v1.2.3-60-g2f50