summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2015-10-03 18:15:37 +0200
committerJulien Nabet <serval2412@yahoo.fr>2015-10-03 18:18:39 +0200
commit2ff595dbf2b42b4b3ee961b63e5da92067aa8fd9 (patch)
tree20b7fcc5f2e468bf10c08000be9f2df12e348516 /wizards
parent7e5a7dcc5143911430b19bcb836ab573298cabe6 (diff)
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. Change-Id: I99dd23339d888c33e7706935842a91f5da681ade
Diffstat (limited to 'wizards')
-rw-r--r--wizards/com/sun/star/wizards/web/FTPDialog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wizards/com/sun/star/wizards/web/FTPDialog.py b/wizards/com/sun/star/wizards/web/FTPDialog.py
index 6f3cf755893e..25b1c6bb15fb 100644
--- a/wizards/com/sun/star/wizards/web/FTPDialog.py
+++ b/wizards/com/sun/star/wizards/web/FTPDialog.py
@@ -249,7 +249,7 @@ class FTPDialog(WizardDialog):
# according to the status of the hostname, username, password text fields.
# If one of these fields is empty, the button is disabled.
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
# @return True if the string is None or "".