Kaydet (Commit) 1e8914c4 authored tarafından Julien Nabet's avatar Julien Nabet Kaydeden (comit) Andras Timar

Web Wizard, ftp part: fix logic for dialog

Comment indicated "If one of these fields is empty, the button is disabled",
let's stick to this.

Cherry-picked from 2ff595db

Change-Id: I99dd23339d888c33e7706935842a91f5da681ade
Reviewed-on: https://gerrit.libreoffice.org/19112Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
(cherry picked from commit 3a3fb3c5)
üst 14e4adac
...@@ -249,7 +249,7 @@ class FTPDialog(WizardDialog): ...@@ -249,7 +249,7 @@ class FTPDialog(WizardDialog):
# according to the status of the hostname, username, password text fields. # according to the status of the hostname, username, password text fields.
# If one of these fields is empty, the button is disabled. # If one of these fields is empty, the button is disabled.
def enableTestButton(self): def enableTestButton(self):
self.setEnabled(self.btnTestConnection, not self.isEmpty(self.host) or self.isEmpty(self.username) or self.isEmpty(self.password)) self.setEnabled(self.btnTestConnection, not (self.isEmpty(self.host) or self.isEmpty(self.username) or self.isEmpty(self.password)))
# @param s # @param s
# @return True if the string is None or "". # @return True if the string is None or "".
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment