From e6ab047751b9d56e541d230aa0c8cf0ba069aa59 Mon Sep 17 00:00:00 2001 From: Klaas Freitag Date: Wed, 2 Dec 2015 10:05:56 +0100 Subject: [PATCH] ShareLinkWidget: Set state of passwd checkbox always. --- src/gui/sharelinkwidget.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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); -- 2.30.2