mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +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() {
|
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,
|
||||||
|
|
Loading…
Reference in a new issue