ShareLinkWidget: Set state of passwd checkbox always.
authorKlaas Freitag <freitag@owncloud.com>
Wed, 2 Dec 2015 09:05:56 +0000 (10:05 +0100)
committerKlaas Freitag <freitag@owncloud.com>
Wed, 2 Dec 2015 09:05:56 +0000 (10:05 +0100)
src/gui/sharelinkwidget.cpp

index d482f6024efe87c9a87886da773cca8d72905f69..da3ff8791fd6c1622a76f95a4bfce0ff5947069b 100644 (file)
@@ -236,9 +236,8 @@ void ShareLinkWidget::slotSharesFetched(const QList<QSharedPointer<Share>> &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);