[Pkg-owncloud-commits] [owncloud-client] 310/498: Wait until we retrieved shares before showing checkbox

Sandro Knauß hefee-guest at moszumanska.debian.org
Tue Aug 11 14:49:01 UTC 2015


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

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 454e9d9906ba6ff1e022340aa372042173fc0ed5
Author: Roeland Jago Douma <roeland at famdouma.nl>
Date:   Wed Jul 8 22:39:09 2015 +0200

    Wait until we retrieved shares before showing checkbox
    
    If we have a slow connection we do now want to show the share checkbox until we
    have retrieved the shares (so we know the state). Else we might try to enable
    sharing on an already shared file.
---
 src/gui/sharedialog.cpp | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/gui/sharedialog.cpp b/src/gui/sharedialog.cpp
index 2bcb126..19274c5 100644
--- a/src/gui/sharedialog.cpp
+++ b/src/gui/sharedialog.cpp
@@ -75,6 +75,10 @@ ShareDialog::ShareDialog(AccountPtr account, const QString &sharePath, const QSt
     connect(_ui->checkBox_expire, SIGNAL(clicked()), this, SLOT(slotCheckBoxExpireClicked()));
     connect(_ui->calendar, SIGNAL(dateChanged(QDate)), SLOT(slotCalendarClicked(QDate)));
 
+    //Disable checkbox
+    _ui->checkBox_shareLink->setEnabled(false);
+    _pi_link->startAnimation();
+
     _ui->pushButton_setPassword->setEnabled(false);
     _ui->widget_shareLink->hide();
     _ui->lineEdit_password->hide();
@@ -288,6 +292,10 @@ void ShareDialog::slotSharesFetched(const QVariantMap &reply)
     ShareDialog::_shares = reply.value("ocs").toMap().value("data").toList();
     const QString versionString = _account->serverVersion();
 
+    //Show link checkbox now
+    _ui->checkBox_shareLink->setEnabled(true);
+    _pi_link->stopAnimation();
+
     Q_FOREACH(auto share, ShareDialog::_shares) {
         QVariantMap data = share.toMap();
 

-- 
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