diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-09-28 20:48:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-09-28 21:00:55 +0300 |
commit | b22ce8d250b1fa995f76c337e1cba6a4b164fe23 (patch) | |
tree | b6761c8bfb0c396750d009b0d38d2060822ea86a /src/gui/widgets/inttextfield.cpp | |
parent | 36f19b67df5ba7b00e91d9a234088f276b8bf513 (diff) | |
download | plus-b22ce8d250b1fa995f76c337e1cba6a4b164fe23.tar.gz plus-b22ce8d250b1fa995f76c337e1cba6a4b164fe23.tar.bz2 plus-b22ce8d250b1fa995f76c337e1cba6a4b164fe23.tar.xz plus-b22ce8d250b1fa995f76c337e1cba6a4b164fe23.zip |
Add amount text field to buy dialog.
Diffstat (limited to 'src/gui/widgets/inttextfield.cpp')
-rw-r--r-- | src/gui/widgets/inttextfield.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/widgets/inttextfield.cpp b/src/gui/widgets/inttextfield.cpp index 021340fbe..89544e108 100644 --- a/src/gui/widgets/inttextfield.cpp +++ b/src/gui/widgets/inttextfield.cpp @@ -50,6 +50,9 @@ void IntTextField::keyPressed(gcn::KeyEvent &event) key.getValue() == Key::DELETE) { setText(std::string()); + if (mSendAlwaysEvents) + distributeActionEvent(); + event.consume(); } @@ -62,6 +65,8 @@ void IntTextField::keyPressed(gcn::KeyEvent &event) int i; s >> i; setValue(i); + if (mSendAlwaysEvents) + distributeActionEvent(); } void IntTextField::setRange(int min, int max) |