mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 13:35:58 +03:00
Lock the sharee input when sharing
This prevents accidentally sharing with the same sharee multiple times. Because creating shares is not instance. Fixes #4469
This commit is contained in:
parent
5d7aa792e7
commit
cf0762a067
1 changed files with 2 additions and 0 deletions
|
@ -197,6 +197,7 @@ void ShareUserGroupWidget::slotSharesFetched(const QList<QSharedPointer<Share>>
|
|||
scrollArea->setWidget(newViewPort);
|
||||
|
||||
_disableCompleterActivated = false;
|
||||
_ui->shareeLineEdit->setEnabled(true);
|
||||
}
|
||||
|
||||
void ShareUserGroupWidget::slotAdjustScrollWidgetSize()
|
||||
|
@ -234,6 +235,7 @@ void ShareUserGroupWidget::slotCompleterActivated(const QModelIndex & index)
|
|||
_manager->createShare(_sharePath, Share::ShareType(sharee->type()),
|
||||
sharee->shareWith(), Share::PermissionDefault);
|
||||
|
||||
_ui->shareeLineEdit->setEnabled(false);
|
||||
_ui->shareeLineEdit->setText(QString());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue