[Pkg-owncloud-commits] [owncloud-client] 55/470: Lock the sharee input when sharing
Sandro Knauß
hefee-guest at moszumanska.debian.org
Thu May 12 16:24:44 UTC 2016
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 cf0762a067f7fd0680cc8d67359773c36dca8ad4
Author: Roeland Jago Douma <rullzer at owncloud.com>
Date: Mon Feb 22 15:14:05 2016 +0100
Lock the sharee input when sharing
This prevents accidentally sharing with the same sharee multiple times.
Because creating shares is not instance.
Fixes #4469
---
src/gui/shareusergroupwidget.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/gui/shareusergroupwidget.cpp b/src/gui/shareusergroupwidget.cpp
index 07b5f47..00d4d73 100644
--- a/src/gui/shareusergroupwidget.cpp
+++ b/src/gui/shareusergroupwidget.cpp
@@ -197,6 +197,7 @@ void ShareUserGroupWidget::slotSharesFetched(const QList<QSharedPointer<Share>>
scrollArea->setWidget(newViewPort);
_disableCompleterActivated = false;
+ _ui->shareeLineEdit->setEnabled(true);
}
void ShareUserGroupWidget::slotAdjustScrollWidgetSize()
@@ -234,6 +235,7 @@ void ShareUserGroupWidget::slotCompleterActivated(const QModelIndex & index)
_manager->createShare(_sharePath, Share::ShareType(sharee->type()),
sharee->shareWith(), Share::PermissionDefault);
+ _ui->shareeLineEdit->setEnabled(false);
_ui->shareeLineEdit->setText(QString());
}
--
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