Helpviewer/HelpBrowserWV.py

changeset 923
e224bdbf88ad
parent 826
2e3e2055e715
child 945
8cd4d08fa9f6
child 1510
e75ecf2bd9dd
--- a/Helpviewer/HelpBrowserWV.py	Wed Mar 02 19:55:39 2011 +0100
+++ b/Helpviewer/HelpBrowserWV.py	Thu Mar 03 18:58:30 2011 +0100
@@ -26,7 +26,11 @@
 from .Bookmarks.AddBookmarkDialog import AddBookmarkDialog
 from .JavaScriptResources import fetchLinks_js
 from .HTMLResources import notFoundPage_html
-from .SslInfoDialog import SslInfoDialog
+try:
+    from .SslInfoDialog import SslInfoDialog
+    SSL_AVAILABLE = True
+except ImportError:
+    SSL_AVAILABLE = False
 import Helpviewer.HelpWindow
 
 from .Network.NetworkAccessManagerProxy import NetworkAccessManagerProxy
@@ -348,7 +352,7 @@
         """
         Public slot to show some SSL information for the loaded page.
         """
-        if self.__sslInfo is not None:
+        if SSL_AVAILABLE and self.__sslInfo is not None:
             dlg = SslInfoDialog(self.__sslInfo, self.view())
             dlg.exec_()
         else:

eric ide

mercurial