From e224665c4824fcff451802f49fcb299a12e6de00 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Wed, 27 Sep 2023 13:47:39 +0800 Subject: [PATCH] Prevent empty password being passed into share creation We already generate a new password when the share password dialog is created, so there is really no need to clear the field when it closes. This prevents the field being cleared before the password is sent into the C++ code, leading to no password actually being sent to the server Signed-off-by: Claudio Cambra --- src/gui/filedetails/ShareView.qml | 1 - 1 file changed, 1 deletion(-) diff --git a/src/gui/filedetails/ShareView.qml b/src/gui/filedetails/ShareView.qml index b130b68022959..8622463abec4d 100644 --- a/src/gui/filedetails/ShareView.qml +++ b/src/gui/filedetails/ShareView.qml @@ -97,7 +97,6 @@ ColumnLayout { visible: false onAboutToShow: dialogPasswordField.text = shareModel.generatePassword() - onClosed: dialogPasswordField.text = "" onAccepted: { if(sharee) {