mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 21:46:03 +03:00
ShareLink: Ensure the password line edit is enabled #5117
(cherry picked from commit b541fea793
)
This commit is contained in:
parent
37adaa7872
commit
cb19ebc9e3
1 changed files with 2 additions and 0 deletions
|
@ -366,6 +366,7 @@ void ShareLinkWidget::slotCheckBoxShareLinkClicked()
|
|||
_ui->checkBox_password->setText(tr("Public shå requires a password"));
|
||||
_ui->checkBox_expire->setEnabled(false);
|
||||
_ui->checkBox_editing->setEnabled(false);
|
||||
_ui->lineEdit_password->setEnabled(true);
|
||||
_ui->lineEdit_password->setFocus();
|
||||
_ui->pushButton_copy->hide();
|
||||
_ui->widget_shareLink->show();
|
||||
|
@ -432,6 +433,7 @@ void ShareLinkWidget::slotCheckBoxPasswordClicked()
|
|||
_ui->lineEdit_password->show();
|
||||
_ui->pushButton_setPassword->show();
|
||||
_ui->lineEdit_password->setPlaceholderText(tr("Please Set Password"));
|
||||
_ui->lineEdit_password->setEnabled(true);
|
||||
_ui->lineEdit_password->setFocus();
|
||||
} else {
|
||||
setPassword(QString());
|
||||
|
|
Loading…
Reference in a new issue