summaryrefslogtreecommitdiff
path: root/src/gui/textcommandeditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/textcommandeditor.cpp')
-rw-r--r--src/gui/textcommandeditor.cpp6
1 files changed, 3 insertions, 3 deletions
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;