From 691e3ad6253a537829aa0b7600716f7612144ae1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 10 Jun 2016 22:45:01 +0300 Subject: Fix space usage in login dialog in SDL2 builds. --- src/gui/windows/logindialog.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gui/windows/logindialog.cpp') diff --git a/src/gui/windows/logindialog.cpp b/src/gui/windows/logindialog.cpp index 798964945..9ef745cc3 100644 --- a/src/gui/windows/logindialog.cpp +++ b/src/gui/windows/logindialog.cpp @@ -274,8 +274,12 @@ void LoginDialog::keyPressed(KeyEvent &event) { action(ActionEvent(nullptr, mServerButton->getActionEventId())); } +#ifdef USE_SDL2 + else if (actionId == InputAction::GUI_SELECT2) +#else // USE_SDL2 else if (actionId == InputAction::GUI_SELECT || actionId == InputAction::GUI_SELECT2) +#endif // USE_SDL2 { action(ActionEvent(nullptr, mLoginButton->getActionEventId())); } -- cgit v1.2.3-70-g09d2