diff --git a/src/gui/shareusergroupwidget.cpp b/src/gui/shareusergroupwidget.cpp index 8e2b236c8..031ac84ad 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,