1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

refactor(profile): reorder statements

This commit is contained in:
a68366 2016-05-14 15:09:14 +03:00
parent f9edd39bba
commit c236b8a1d2

View File

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