diff options
-rw-r--r-- | src/gui/npcintegerdialog.cpp | 1 | ||||
-rw-r--r-- | src/gui/npcstringdialog.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/npcintegerdialog.cpp b/src/gui/npcintegerdialog.cpp index 75dd52c8..473c10f6 100644 --- a/src/gui/npcintegerdialog.cpp +++ b/src/gui/npcintegerdialog.cpp @@ -107,5 +107,6 @@ void NpcIntegerDialog::action(const gcn::ActionEvent &event) setVisible(false); current_npc->integerInput(mValueField->getValue()); current_npc = 0; + mValueField->reset(); } } diff --git a/src/gui/npcstringdialog.cpp b/src/gui/npcstringdialog.cpp index da7048a6..500875be 100644 --- a/src/gui/npcstringdialog.cpp +++ b/src/gui/npcstringdialog.cpp @@ -69,6 +69,7 @@ void NpcStringDialog::action(const gcn::ActionEvent &event) setVisible(false); current_npc->stringInput(mValueField->getText()); current_npc = 0; + mValueField->setText(""); } bool NpcStringDialog::isInputFocused() |