mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 06:58:42 +00:00
disable https if pyopenssl is not installed
This commit is contained in:
parent
5270d1fe4f
commit
a7b232845a
1 changed files with 7 additions and 0 deletions
|
@ -245,6 +245,13 @@ class ConfigDialog(gtk.Dialog):
|
||||||
self.add_buttons(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL
|
self.add_buttons(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL
|
||||||
,gtk.STOCK_OK, gtk.RESPONSE_OK)
|
,gtk.STOCK_OK, gtk.RESPONSE_OK)
|
||||||
|
|
||||||
|
#disable https if pyopenssl is not installed
|
||||||
|
try:
|
||||||
|
import OpenSSL
|
||||||
|
except:
|
||||||
|
self.use_https.set_sensitive(False)
|
||||||
|
|
||||||
|
|
||||||
def add_widget(self,label,w=None):
|
def add_widget(self,label,w=None):
|
||||||
hb = gtk.HBox()
|
hb = gtk.HBox()
|
||||||
lbl = gtk.Label(label)
|
lbl = gtk.Label(label)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue