From 70bf45e429a649f59484968d0484a4326ed1a3e9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 23 May 2018 00:55:12 +0300 Subject: Fix loading text command properties in command editor. --- src/gui/windows/textcommandeditor.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gui/windows') diff --git a/src/gui/windows/textcommandeditor.cpp b/src/gui/windows/textcommandeditor.cpp index bbd1e4c2d..c9d48f21c 100644 --- a/src/gui/windows/textcommandeditor.cpp +++ b/src/gui/windows/textcommandeditor.cpp @@ -167,6 +167,11 @@ TextCommandEditor::TextCommandEditor(TextCommand *const command) : - MAGIC_START_ID); mSchoolLvlField->setValue(command->getSchoolLvl()); #endif // TMWA_SUPPORT + + mSymbolTextField->setText(command->getSymbol()); + mCommandTextField->setText(command->getCommand()); + mCommentTextField->setText(command->getComment()); + mTypeDropDown->setSelected(CAST_S32(command->getTargetType())); } ContainerPlacer placer(nullptr, nullptr); -- cgit v1.2.3-70-g09d2