fix another http leak
authorThomasV <thomasv@gitorious>
Tue, 1 Oct 2013 07:14:07 +0000 (09:14 +0200)
committerThomasV <thomasv@gitorious>
Tue, 1 Oct 2013 07:14:07 +0000 (09:14 +0200)
gui/qt/version_getter.py

index 07655fd..855f279 100644 (file)
@@ -54,6 +54,9 @@ class UpdateLabel(QLabel):
         self.config = config
         self.current_version = ELECTRUM_VERSION
         self.connect(self, QtCore.SIGNAL('new_electrum_version'), self.new_electrum_version)
+        # prevent HTTP leaks if a proxy is set
+        if self.config.get('proxy'):
+            return
         VersionGetter(self).start()
 
     def callback(self, version):