disable https if pyopenssl is not installed

This commit is contained in:
Martijn Voncken 2008-06-25 16:21:23 +00:00
parent 5270d1fe4f
commit a7b232845a

View File

@ -245,6 +245,13 @@ class ConfigDialog(gtk.Dialog):
self.add_buttons(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL
,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):
hb = gtk.HBox()
lbl = gtk.Label(label)