diff options
author | Stijn Buys <ingar@osirion.org> | 2010-10-05 14:38:14 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-10-05 14:38:14 +0000 |
commit | fed29d9ddc3b8372b9c3fe8bffe221a5a55e5ce9 (patch) | |
tree | 659096f4412e6ad9a0f47e70a620da327195e67a /src/ui/button.cc | |
parent | 312b9bcb81748032ff21e3d3f1d5fd36405fb713 (diff) |
updated inventory window, listview seletion sounds, modelview zoom factor
Diffstat (limited to 'src/ui/button.cc')
-rw-r--r-- | src/ui/button.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/button.cc b/src/ui/button.cc index ddcc72d..6cbb51e 100644 --- a/src/ui/button.cc +++ b/src/ui/button.cc @@ -85,7 +85,9 @@ bool Button::on_keypress(const int key, const unsigned int modifier) { if (key == 512 + SDL_BUTTON_LEFT) { if (enabled()) { - core::cmd() << button_command << std::endl; + if (button_command.size()) { + core::cmd() << button_command << std::endl; + } audio::play("ui/button"); emit(EventButtonClicked); |