From: Christian Kamm Date: Tue, 19 Jan 2016 12:37:06 +0000 (+0100) Subject: Share dialog: Remove unintended spinner when password required X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~1254^2~51 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7f44e83cc752a959a75c622fd4a83fc83c4f3fc2;p=nextcloud-desktop.git Share dialog: Remove unintended spinner when password required --- diff --git a/src/gui/sharelinkwidget.cpp b/src/gui/sharelinkwidget.cpp index a8a3e2d80..c5c5b0c30 100644 --- a/src/gui/sharelinkwidget.cpp +++ b/src/gui/sharelinkwidget.cpp @@ -358,14 +358,11 @@ void ShareLinkWidget::slotCheckBoxShareLinkClicked() { qDebug() << Q_FUNC_INFO <<( _ui->checkBox_shareLink->checkState() == Qt::Checked); if (_ui->checkBox_shareLink->checkState() == Qt::Checked) { - _pi_link->startAnimation(); - /* * Check the capabilities if the server requires a password for a share * Ask for it directly */ if (_account->capabilities().sharePublicLinkEnforcePassword()) { - _pi_link->stopAnimation(); _ui->checkBox_password->setChecked(true); _ui->checkBox_password->setEnabled(false); _ui->checkBox_password->setText(tr("Public shå requires a password")); @@ -379,6 +376,7 @@ void ShareLinkWidget::slotCheckBoxShareLinkClicked() return; } + _pi_link->startAnimation(); _ui->checkBox_shareLink->setEnabled(false); _manager->createLinkShare(_sharePath); } else {