summaryrefslogtreecommitdiff
path: root/src/gui/windows/logindialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-10 22:45:01 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-10 22:45:01 +0300
commit691e3ad6253a537829aa0b7600716f7612144ae1 (patch)
tree1802ee71f7e42776ec28df9ff095e9d95f1558a8 /src/gui/windows/logindialog.cpp
parenta373717a071e4c35e1eb5c033a7c04fe44ce6c1e (diff)
downloadmv-691e3ad6253a537829aa0b7600716f7612144ae1.tar.gz
mv-691e3ad6253a537829aa0b7600716f7612144ae1.tar.bz2
mv-691e3ad6253a537829aa0b7600716f7612144ae1.tar.xz
mv-691e3ad6253a537829aa0b7600716f7612144ae1.zip
Fix space usage in login dialog in SDL2 builds.
Diffstat (limited to 'src/gui/windows/logindialog.cpp')
-rw-r--r--src/gui/windows/logindialog.cpp4
1 files changed, 4 insertions, 0 deletions
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()));
}