fix: do not change the server if the user cancelled the action
authorThomasV <thomasv@gitorious>
Thu, 5 Apr 2012 16:49:30 +0000 (18:49 +0200)
committerThomasV <thomasv@gitorious>
Thu, 5 Apr 2012 16:49:30 +0000 (18:49 +0200)
client/electrum4a.py

index 87bc3cb..9c756b6 100755 (executable)
@@ -693,8 +693,8 @@ def settings_loop():
                 host = srv.split(':')[0]
                 if host in plist:
                     server = protocol_dialog(host, plist[host])
-                    print server
-                    droid.fullSetProperty("server","text",server)
+                    if server:
+                        droid.fullSetProperty("server","text",server)
 
             elif id=="buttonSave":