Browse Source

Merge pull request #3642

Zetok Zalbavar (1):
      fix: hide option to `Load automatically` for encrypted profiles
reviewable/pr3633/r3
initramfs 9 years ago
parent
commit
e3c6f3eced
No known key found for this signature in database
GPG Key ID: 78B8BDF87E9EF0AF
  1. 9
      src/widget/loginscreen.cpp

9
src/widget/loginscreen.cpp

@ -191,16 +191,15 @@ void LoginScreen::onLoginUsernameSelected(const QString &name) @@ -191,16 +191,15 @@ void LoginScreen::onLoginUsernameSelected(const QString &name)
ui->loginPassword->show();
// there is no way to do autologin if profile is encrypted, and
// visible option confuses users into thinking that it is possible,
// thus disable it (and hope that users won't think that it's a bug)
ui->autoLoginCB->setEnabled(false);
ui->autoLoginCB->setToolTip(tr("Password protected profiles can't be automatically loaded."));
// thus hide it
ui->autoLoginCB->hide();
}
else
{
ui->loginPasswordLabel->hide();
ui->loginPassword->hide();
ui->autoLoginCB->setEnabled(true);
ui->autoLoginCB->setToolTip("");
ui->autoLoginCB->show();
ui->autoLoginCB->setToolTip(tr("Password protected profiles can't be automatically loaded."));
}
}

Loading…
Cancel
Save