[Sharing] Clear completer on activation

This commit is contained in:
Roeland Jago Douma 2015-11-05 13:16:52 +01:00
parent 806ec98eab
commit 4cf2422a83

View file

@ -91,7 +91,6 @@ void ShareUserGroupWidget::on_searchPushButton_clicked()
void ShareUserGroupWidget::slotUpdateCompletion() { void ShareUserGroupWidget::slotUpdateCompletion() {
_completer->setModel(_completerModel); _completer->setModel(_completerModel);
_ui->shareeLineEdit->setCompleter(_completer);
_completer->complete(); _completer->complete();
} }
@ -143,6 +142,9 @@ void ShareUserGroupWidget::slotCompleterActivated(const QModelIndex & index) {
(Share::ShareType)sharee->type(), (Share::ShareType)sharee->type(),
sharee->shareWith(), sharee->shareWith(),
Share::PermissionRead); Share::PermissionRead);
_completer->setModel(NULL);
_ui->shareeLineEdit->setText(QString());
} }
ShareWidget::ShareWidget(QSharedPointer<Share> share, ShareWidget::ShareWidget(QSharedPointer<Share> share,