summaryrefslogtreecommitdiff
path: root/src/gui/windows/textcommandeditor.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-05-23 00:55:12 +0300
committerAndrei Karas <akaras@inbox.ru>2018-05-23 00:55:12 +0300
commit70bf45e429a649f59484968d0484a4326ed1a3e9 (patch)
tree4839408fba4b1b22c9af9971884fd3a202c21d5f /src/gui/windows/textcommandeditor.cpp
parent700032eb94fb6a67bef01606387ec5779e2714cf (diff)
downloadplus-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/windows/textcommandeditor.cpp')
-rw-r--r--src/gui/windows/textcommandeditor.cpp5
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);