summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjak1 <jak1@themanaworld.org>2022-12-16 18:33:06 +0100
committerjak1 <jak1@themanaworld.org>2022-12-18 17:47:34 +0000
commit0baa2fe8c2c2c6a2620e6c4e01e0d71ab26cf663 (patch)
treef2bdc2eb31f39d24288e5a6198997f01c18b6b45 /src
parent39704c82f8e380dfd68cedf47f75fe7507db8c4c (diff)
downloadmv-0baa2fe8c2c2c6a2620e6c4e01e0d71ab26cf663.tar.gz
mv-0baa2fe8c2c2c6a2620e6c4e01e0d71ab26cf663.tar.bz2
mv-0baa2fe8c2c2c6a2620e6c4e01e0d71ab26cf663.tar.xz
mv-0baa2fe8c2c2c6a2620e6c4e01e0d71ab26cf663.zip
fixed formating (linter)
Diffstat (limited to 'src')
-rw-r--r--src/gui/windows/worldselectdialog.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gui/windows/worldselectdialog.cpp b/src/gui/windows/worldselectdialog.cpp
index f99467b5d..36cd57e07 100644
--- a/src/gui/windows/worldselectdialog.cpp
+++ b/src/gui/windows/worldselectdialog.cpp
@@ -134,17 +134,18 @@ void WorldSelectDialog::keyPressed(KeyEvent &event)
action(ActionEvent(nullptr, mChooseWorld->getActionEventId()));
}
- if (actionId == InputAction::GUI_UP) {
+ if (actionId == InputAction::GUI_UP)
+ {
event.consume();
-
- if (mWorldList->getSelected() > 0) {
+ if (mWorldList->getSelected() > 0)
+ {
mWorldList->setSelected(mWorldList->getSelected() - 1);
}
}
- if (actionId == InputAction::GUI_DOWN) {
+ if (actionId == InputAction::GUI_DOWN)
+ {
event.consume();
-
mWorldList->setSelected(mWorldList->getSelected() + 1);
}
}