UI/UserInterface.py

changeset 2369
0b7b019247e5
parent 2362
68a92d01c1cc
child 2370
e4a2a12f8e23
diff -r 7d6ba32b8f78 -r 0b7b019247e5 UI/UserInterface.py
--- a/UI/UserInterface.py	Fri Jan 25 18:04:03 2013 +0100
+++ b/UI/UserInterface.py	Fri Jan 25 18:13:50 2013 +0100
@@ -4517,11 +4517,13 @@
         """
         Private slot to show the Eric documentation.
         """
-        home = Utilities.normjoinpath(getConfig('ericDocDir'),
-            "Source", "index.html")
+##        home = Utilities.normjoinpath(getConfig('ericDocDir'),
+##            "Source", "index.html")
+        home = "qthelp://org.eric5.ide/eric5/index.html"
         
         if not home.startswith("http://") and \
-           not home.startswith("https://"):
+           not home.startswith("https://") and \
+           not home.startswith("qthelp://"):
             if not os.path.exists(home):
                 E5MessageBox.warning(self,
                     self.trUtf8("Documentation Missing"),
@@ -4529,11 +4531,11 @@
                                 """ "<b>{0}</b>" could not be found.</p>""")\
                         .format(home))
                 return
-        
-        if Utilities.isWindowsPlatform():
-            home = "file:///" + Utilities.fromNativeSeparators(home)
-        else:
-            home = "file://" + home
+            
+            if Utilities.isWindowsPlatform():
+                home = "file:///" + Utilities.fromNativeSeparators(home)
+            else:
+                home = "file://" + home
         
         hvType = Preferences.getHelp("HelpViewerType")
         if hvType == 1:

eric ide

mercurial