diff options
Diffstat (limited to 'src/gui/textcommandeditor.cpp')
-rw-r--r-- | src/gui/textcommandeditor.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/textcommandeditor.cpp b/src/gui/textcommandeditor.cpp index 2794a83b4..05ad61a5c 100644 --- a/src/gui/textcommandeditor.cpp +++ b/src/gui/textcommandeditor.cpp @@ -171,11 +171,11 @@ TextCommandEditor::TextCommandEditor(TextCommand *const command) : mIsMagic(new RadioButton(_("magic"), "magic", mIsMagicCommand)), mIsOther(new RadioButton(_("other"), "magic", !mIsMagicCommand)), mSymbolLabel(new Label(_("Symbol:"))), - mSymbolTextField(new TextField()), + mSymbolTextField(new TextField(this)), mCommandLabel(new Label(_("Command:"))), - mCommandTextField(new TextField()), + mCommandTextField(new TextField(this)), mCommentLabel(new Label(_("Comment:"))), - mCommentTextField(new TextField), + mCommentTextField(new TextField(this)), mTargetTypeModel(new TargetTypeModel), mTypeLabel(new Label(_("Target Type:"))), mTypeDropDown(new DropDown(this, mTargetTypeModel)), @@ -183,14 +183,14 @@ TextCommandEditor::TextCommandEditor(TextCommand *const command) : mIconLabel(new Label(_("Icon:"))), mIconDropDown(new DropDown(this, mIconsModal)), mManaLabel(new Label(_("Mana:"))), - mManaField(new IntTextField(0)), + mManaField(new IntTextField(this, 0)), mMagicLvlLabel(new Label(_("Magic level:"))), - mMagicLvlField(new IntTextField(0)), + mMagicLvlField(new IntTextField(this, 0)), mMagicSchoolModel(new MagicSchoolModel), mSchoolLabel(new Label(_("Magic School:"))), mSchoolDropDown(new DropDown(this, mMagicSchoolModel)), mSchoolLvlLabel(new Label(_("School level:"))), - mSchoolLvlField(new IntTextField(0)), + mSchoolLvlField(new IntTextField(this, 0)), mCancelButton(new Button(this, _("Cancel"), "cancel", this)), mSaveButton(new Button(this, _("Save"), "save", this)), mDeleteButton(new Button(this, _("Delete"), "delete", this)), |