summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/windows/charselectdialog.cpp21
1 files changed, 7 insertions, 14 deletions
diff --git a/src/gui/windows/charselectdialog.cpp b/src/gui/windows/charselectdialog.cpp
index 481d34471..66e7a886d 100644
--- a/src/gui/windows/charselectdialog.cpp
+++ b/src/gui/windows/charselectdialog.cpp
@@ -102,15 +102,11 @@ CharSelectDialog::CharSelectDialog(LoginData &data) :
placer = getPlacer(0, 0);
// disable logout using -S
+ int row = 0;
if (!settings.options.uniqueSession)
- {
- placer(0, 0, mSwitchLoginButton, 1, 1);
- }
- int n = 1;
- placer(n, 0, mChangePasswordButton, 1, 1);
- n ++;
- placer(n, 0, mDeleteButton, 1, 1);
- n ++;
+ placer(row++, 0, mSwitchLoginButton, 1, 1);
+ placer(row++, 0, mChangePasswordButton, 1, 1);
+ placer(row++, 0, mDeleteButton, 1, 1);
#ifdef TMWA_SUPPORT
if (Net::getNetworkType() != ServerType::TMWATHENA)
#endif
@@ -121,8 +117,7 @@ CharSelectDialog::CharSelectDialog(LoginData &data) :
"rename",
BUTTON_SKIN,
this);
- placer(n, 0, mRenameButton, 1, 1);
- n ++;
+ placer(row++, 0, mRenameButton, 1, 1);
}
#ifdef TMWA_SUPPORT
if (serverFeatures->havePincode())
@@ -134,11 +129,9 @@ CharSelectDialog::CharSelectDialog(LoginData &data) :
"changepin",
BUTTON_SKIN,
this);
- placer(n, 0, mChangePinButton, 1, 1);
- n ++;
+ placer(row++, 0, mChangePinButton, 1, 1);
}
- placer(n, 0, mInfoButton, 1, 1);
- n ++;
+ placer(row++, 0, mInfoButton, 1, 1);
for (int i = 0; i < CAST_S32(mLoginData->characterSlots); i++)
{