diff PreferencesDialog.py @ 229:f0b5bdce1189

fix the preferences dialog after update to the new style api
author Dirk Olmes <dirk@xanthippe.ping.de>
date Wed, 02 Jul 2014 18:20:56 +0200
parents 699d8f1cebd4
children e34c53a3e407
line wrap: on
line diff
--- a/PreferencesDialog.py	Sat May 31 04:23:53 2014 +0200
+++ b/PreferencesDialog.py	Wed Jul 02 18:20:56 2014 +0200
@@ -63,13 +63,13 @@
     def storeProxySettings(self):
         proxyHost = self.ui.proxyHost.text()
         self.preferences.setUseProxy(self.ui.useProxy.isChecked())
-        if proxyHost.isEmpty():
+        if len(proxyHost) == 0:
             self.preferences.setProxyHost(None)
         else:
-            self.preferences.setProxyHost(str(proxyHost))
+            self.preferences.setProxyHost(proxyHost)
 
         proxyPort = self.ui.proxyPort.text()
-        if proxyPort.isEmpty():
+        if len(proxyPort) == 0:
             self.preferences.setProxyPort(None)
         else:
             self.preferences.setProxyPort(int(proxyPort))