diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-05-23 00:55:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-05-23 00:55:12 +0300 |
commit | 70bf45e429a649f59484968d0484a4326ed1a3e9 (patch) | |
tree | 4839408fba4b1b22c9af9971884fd3a202c21d5f /src/gui | |
parent | 700032eb94fb6a67bef01606387ec5779e2714cf (diff) | |
download | plus-70bf45e429a649f59484968d0484a4326ed1a3e9.tar.gz plus-70bf45e429a649f59484968d0484a4326ed1a3e9.tar.bz2 plus-70bf45e429a649f59484968d0484a4326ed1a3e9.tar.xz plus-70bf45e429a649f59484968d0484a4326ed1a3e9.zip |
Fix loading text command properties in command editor.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/windows/textcommandeditor.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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); |