mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 13:35:58 +03:00
[Sharing] Clear completer on activation
This commit is contained in:
parent
806ec98eab
commit
4cf2422a83
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue