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()