diff options
author | jak1 <jak1@themanaworld.org> | 2022-12-16 18:33:06 +0100 |
---|---|---|
committer | jak1 <jak1@themanaworld.org> | 2022-12-18 17:47:34 +0000 |
commit | 0baa2fe8c2c2c6a2620e6c4e01e0d71ab26cf663 (patch) | |
tree | f2bdc2eb31f39d24288e5a6198997f01c18b6b45 /src | |
parent | 39704c82f8e380dfd68cedf47f75fe7507db8c4c (diff) | |
download | manaverse-0baa2fe8c2c2c6a2620e6c4e01e0d71ab26cf663.tar.gz manaverse-0baa2fe8c2c2c6a2620e6c4e01e0d71ab26cf663.tar.bz2 manaverse-0baa2fe8c2c2c6a2620e6c4e01e0d71ab26cf663.tar.xz manaverse-0baa2fe8c2c2c6a2620e6c4e01e0d71ab26cf663.zip |
fixed formating (linter)
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/windows/worldselectdialog.cpp | 11 |
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); } } |