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/textcommandeditor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/textcommandeditor.cpp') diff --git a/src/gui/textcommandeditor.cpp b/src/gui/textcommandeditor.cpp index 53c638e45..2794a83b4 100644 --- a/src/gui/textcommandeditor.cpp +++ b/src/gui/textcommandeditor.cpp @@ -191,9 +191,9 @@ TextCommandEditor::TextCommandEditor(TextCommand *const command) : mSchoolDropDown(new DropDown(this, mMagicSchoolModel)), mSchoolLvlLabel(new Label(_("School level:"))), mSchoolLvlField(new IntTextField(0)), - mCancelButton(new Button(_("Cancel"), "cancel", this)), - mSaveButton(new Button(_("Save"), "save", this)), - mDeleteButton(new Button(_("Delete"), "delete", this)), + mCancelButton(new Button(this, _("Cancel"), "cancel", this)), + mSaveButton(new Button(this, _("Save"), "save", this)), + mDeleteButton(new Button(this, _("Delete"), "delete", this)), mEnabledKeyboard(keyboard.isEnabled()) { const int w = 350; -- cgit v1.2.3-60-g2f50