diff options
Diffstat (limited to 'src/gui/windows/editserverdialog.cpp')
-rw-r--r-- | src/gui/windows/editserverdialog.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/windows/editserverdialog.cpp b/src/gui/windows/editserverdialog.cpp index 82c255863..2286a9b36 100644 --- a/src/gui/windows/editserverdialog.cpp +++ b/src/gui/windows/editserverdialog.cpp @@ -290,8 +290,7 @@ void EditServerDialog::keyPressed(KeyEvent &keyEvent) if (keyEvent.isConsumed()) return; - const int actionId = static_cast<KeyEvent*>( - &keyEvent)->getActionId(); + const int actionId = keyEvent.getActionId(); if (actionId == static_cast<int>(Input::KEY_GUI_CANCEL)) { |