summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-11-09 03:16:39 +0300
committerAndrei Karas <akaras@inbox.ru>2011-11-09 03:16:39 +0300
commit955d2dab6f5e75c913bdfa15ed2d6b9c3cdf3338 (patch)
tree8f5fc1cd758da4bda6a305ebcd95d3ccd719d98e /src/gui
parent274737b8d9b46dfcf6fc696123e869bbf6adaaf6 (diff)
downloadplus-955d2dab6f5e75c913bdfa15ed2d6b9c3cdf3338.tar.gz
plus-955d2dab6f5e75c913bdfa15ed2d6b9c3cdf3338.tar.bz2
plus-955d2dab6f5e75c913bdfa15ed2d6b9c3cdf3338.tar.xz
plus-955d2dab6f5e75c913bdfa15ed2d6b9c3cdf3338.zip
Fix code style.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/quitdialog.cpp3
-rw-r--r--src/gui/updaterwindow.cpp3
-rw-r--r--src/gui/worldselectdialog.cpp7
3 files changed, 10 insertions, 3 deletions
diff --git a/src/gui/quitdialog.cpp b/src/gui/quitdialog.cpp
index 0f4d7f6f7..450cfd86e 100644
--- a/src/gui/quitdialog.cpp
+++ b/src/gui/quitdialog.cpp
@@ -165,7 +165,8 @@ void QuitDialog::keyPressed(gcn::KeyEvent &keyEvent)
action(gcn::ActionEvent(nullptr, mOkButton->getActionEventId()));
break;
case Key::ESCAPE:
- action(gcn::ActionEvent(nullptr, mCancelButton->getActionEventId()));
+ action(gcn::ActionEvent(nullptr,
+ mCancelButton->getActionEventId()));
break;
case Key::UP:
dir = -1;
diff --git a/src/gui/updaterwindow.cpp b/src/gui/updaterwindow.cpp
index ed745aa74..ac51cc76f 100644
--- a/src/gui/updaterwindow.cpp
+++ b/src/gui/updaterwindow.cpp
@@ -268,7 +268,8 @@ void UpdaterWindow::keyPressed(gcn::KeyEvent &keyEvent)
}
else
{
- action(gcn::ActionEvent(nullptr, mCancelButton->getActionEventId()));
+ action(gcn::ActionEvent(nullptr,
+ mCancelButton->getActionEventId()));
}
}
}
diff --git a/src/gui/worldselectdialog.cpp b/src/gui/worldselectdialog.cpp
index f7b505610..ae5345031 100644
--- a/src/gui/worldselectdialog.cpp
+++ b/src/gui/worldselectdialog.cpp
@@ -140,7 +140,12 @@ void WorldSelectDialog::keyPressed(gcn::KeyEvent &keyEvent)
gcn::Key key = keyEvent.getKey();
if (key.getValue() == Key::ESCAPE)
- action(gcn::ActionEvent(nullptr, mChangeLoginButton->getActionEventId()));
+ {
+ action(gcn::ActionEvent(nullptr,
+ mChangeLoginButton->getActionEventId()));
+ }
else if (key.getValue() == Key::ENTER)
+ {
action(gcn::ActionEvent(nullptr, mChooseWorld->getActionEventId()));
+ }
}