From c236b8a1d28e49b96dcef7ee3447cdf2ace6c0a8 Mon Sep 17 00:00:00 2001 From: a68366 Date: Sat, 14 May 2016 15:09:14 +0300 Subject: [PATCH] refactor(profile): reorder statements --- src/widget/form/profileform.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/widget/form/profileform.cpp b/src/widget/form/profileform.cpp index 524e5a3fe..176fda442 100644 --- a/src/widget/form/profileform.cpp +++ b/src/widget/form/profileform.cpp @@ -393,16 +393,16 @@ void ProfileForm::onLogoutClicked() void ProfileForm::setPasswordButtonsText() { - if (!Nexus::getProfile()->isEncrypted()) - { - bodyUI->changePassButton->setText(tr("Set profile password", "button text")); - bodyUI->deletePassButton->setVisible(false); - } - else + if (Nexus::getProfile()->isEncrypted()) { bodyUI->changePassButton->setText(tr("Change password", "button text")); bodyUI->deletePassButton->setVisible(true); } + else + { + bodyUI->changePassButton->setText(tr("Set profile password", "button text")); + bodyUI->deletePassButton->setVisible(false); + } } void ProfileForm::onCopyQrClicked()