summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-01-18 21:52:29 -0700
committerIra Rice <irarice@gmail.com>2009-01-18 21:52:29 -0700
commit7c13d69ed3739668bff47728a8976131cd00d5a4 (patch)
treeb33e24015fbe1b340a48bb25b6d66ff863f77bf2
parent928e1671e44a08a1d778b4fff4f0555ce3e9e51f (diff)
downloadmana-7c13d69ed3739668bff47728a8976131cd00d5a4.tar.gz
mana-7c13d69ed3739668bff47728a8976131cd00d5a4.tar.bz2
mana-7c13d69ed3739668bff47728a8976131cd00d5a4.tar.xz
mana-7c13d69ed3739668bff47728a8976131cd00d5a4.zip
Reset the input fields so that they're reset when they're brought up
again. Signed-off-by: Ira Rice <irarice@gmail.com>
-rw-r--r--src/gui/npcintegerdialog.cpp1
-rw-r--r--src/gui/npcstringdialog.cpp1
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()