From: Klaas Freitag Date: Wed, 2 Dec 2015 09:05:56 +0000 (+0100) Subject: ShareLinkWidget: Set state of passwd checkbox always. X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~1387^2~37^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e6ab047751b9d56e541d230aa0c8cf0ba069aa59;p=nextcloud-desktop.git ShareLinkWidget: Set state of passwd checkbox always. --- diff --git a/src/gui/sharelinkwidget.cpp b/src/gui/sharelinkwidget.cpp index d482f6024..da3ff8791 100644 --- a/src/gui/sharelinkwidget.cpp +++ b/src/gui/sharelinkwidget.cpp @@ -236,9 +236,8 @@ void ShareLinkWidget::slotSharesFetched(const QList> &shar _ui->widget_shareLink->show(); _ui->checkBox_shareLink->setChecked(true); - if (!_passwordRequired) { - _ui->checkBox_password->setEnabled(true); - } + _ui->checkBox_password->setEnabled(!_passwordRequired); + if (_share->isPasswordSet()) { _ui->lineEdit_password->setEnabled(true); _ui->checkBox_password->setChecked(true);