From cf0762a067f7fd0680cc8d67359773c36dca8ad4 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Mon, 22 Feb 2016 15:14:05 +0100 Subject: [PATCH] Lock the sharee input when sharing This prevents accidentally sharing with the same sharee multiple times. Because creating shares is not instance. Fixes #4469 --- src/gui/shareusergroupwidget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/shareusergroupwidget.cpp b/src/gui/shareusergroupwidget.cpp index 07b5f473e..00d4d7311 100644 --- a/src/gui/shareusergroupwidget.cpp +++ b/src/gui/shareusergroupwidget.cpp @@ -197,6 +197,7 @@ void ShareUserGroupWidget::slotSharesFetched(const QList> 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()); }