[Pkg-owncloud-commits] [owncloud-client] 126/171: Share dialog: Remove unintended spinner when password required

Sandro Knauß hefee-guest at moszumanska.debian.org
Wed Feb 17 09:36:59 UTC 2016


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to annotated tag upstream/2.1.1+dfsg
in repository owncloud-client.

commit 7f44e83cc752a959a75c622fd4a83fc83c4f3fc2
Author: Christian Kamm <mail at ckamm.de>
Date:   Tue Jan 19 13:37:06 2016 +0100

    Share dialog: Remove unintended spinner when password required
---
 src/gui/sharelinkwidget.cpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/gui/sharelinkwidget.cpp b/src/gui/sharelinkwidget.cpp
index a8a3e2d..c5c5b0c 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&aring requires a password"));
@@ -379,6 +376,7 @@ void ShareLinkWidget::slotCheckBoxShareLinkClicked()
             return;
         }
 
+        _pi_link->startAnimation();
         _ui->checkBox_shareLink->setEnabled(false);
         _manager->createLinkShare(_sharePath);
     } else {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list