[Pkg-owncloud-commits] [owncloud-client] 264/484: [Sharing] Clear completer on activation

Sandro Knauß hefee-guest at moszumanska.debian.org
Wed Dec 16 00:37:51 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 4cf2422a83b1d6e939576c2c79e4fe0e75d260bb
Author: Roeland Jago Douma <rullzer at owncloud.com>
Date:   Thu Nov 5 13:16:52 2015 +0100

    [Sharing] Clear completer on activation
---
 src/gui/shareusergroupwidget.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/gui/shareusergroupwidget.cpp b/src/gui/shareusergroupwidget.cpp
index 8e2b236..031ac84 100644
--- a/src/gui/shareusergroupwidget.cpp
+++ b/src/gui/shareusergroupwidget.cpp
@@ -91,7 +91,6 @@ void ShareUserGroupWidget::on_searchPushButton_clicked()
 
 void ShareUserGroupWidget::slotUpdateCompletion() {
     _completer->setModel(_completerModel);
-    _ui->shareeLineEdit->setCompleter(_completer);
     _completer->complete();
 }
 
@@ -143,6 +142,9 @@ void ShareUserGroupWidget::slotCompleterActivated(const QModelIndex & index) {
                           (Share::ShareType)sharee->type(),
                           sharee->shareWith(),
                           Share::PermissionRead);
+
+    _completer->setModel(NULL);
+    _ui->shareeLineEdit->setText(QString());
 }
 
 ShareWidget::ShareWidget(QSharedPointer<Share> share,

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