summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-06-04 23:38:23 +0300
committerAndrei Karas <akaras@inbox.ru>2013-06-04 23:38:23 +0300
commit9f74ca8f68db611fe1bfcab6b47892a387bc4ae4 (patch)
tree65eb0ddfbc3224f8969f3e4aa171d1b1372a08af
parente269c5d3ad4ed849e2f005098abb39a55402d90e (diff)
downloadmv-9f74ca8f68db611fe1bfcab6b47892a387bc4ae4.tar.gz
mv-9f74ca8f68db611fe1bfcab6b47892a387bc4ae4.tar.bz2
mv-9f74ca8f68db611fe1bfcab6b47892a387bc4ae4.tar.xz
mv-9f74ca8f68db611fe1bfcab6b47892a387bc4ae4.zip
Ignore key event in editserverdialog class if event was already consumed.
-rw-r--r--src/gui/editserverdialog.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/editserverdialog.cpp b/src/gui/editserverdialog.cpp
index 1361951c8..3882defe5 100644
--- a/src/gui/editserverdialog.cpp
+++ b/src/gui/editserverdialog.cpp
@@ -284,6 +284,9 @@ void EditServerDialog::action(const gcn::ActionEvent &event)
void EditServerDialog::keyPressed(gcn::KeyEvent &keyEvent)
{
+ if (keyEvent.isConsumed())
+ return;
+
const int actionId = static_cast<KeyEvent*>(
&keyEvent)->getActionId();