Fixed an issue showing help on Windows.

Sat, 19 Jun 2010 19:34:20 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 19 Jun 2010 19:34:20 +0200
changeset 357
197abac89822
parent 355
c29c8b8dadf1
child 358
68fa7bc235fb
child 359
679fa2357b0c

Fixed an issue showing help on Windows.

UI/UserInterface.py file | annotate | diff | comparison | revisions
--- a/UI/UserInterface.py	Sat Jun 19 18:30:21 2010 +0200
+++ b/UI/UserInterface.py	Sat Jun 19 19:34:20 2010 +0200
@@ -4438,7 +4438,10 @@
                 return
             
             if not home.endswith(".chm"):
-                home = "file://" + home
+                if Utilities.isWindowsPlatform():
+                    home = "file:///" + Utilities.fromNativeSeparators(home)
+                else:
+                    home = "file://" + home
         else:
             home = pythonDocDir
         
@@ -4486,7 +4489,10 @@
                         .format(home))
                 return
             
-            home = "file://" + home
+            if Utilities.isWindowsPlatform():
+                home = "file:///" + Utilities.fromNativeSeparators(home)
+            else:
+                home = "file://" + home
         
         hvType = Preferences.getHelp("HelpViewerType")
         if hvType == 1:
@@ -4540,7 +4546,10 @@
                         .format(home))
                 return
             
-            home = "file://" + home
+            if Utilities.isWindowsPlatform():
+                home = "file:///" + Utilities.fromNativeSeparators(home)
+            else:
+                home = "file://" + home
         else:
             home = pyqt4DocDir
         
@@ -4617,7 +4626,10 @@
                         .format(home))
                 return
             
-            home = "file://" + home
+            if Utilities.isWindowsPlatform():
+                home = "file:///" + Utilities.fromNativeSeparators(home)
+            else:
+                home = "file://" + home
         else:
             home = pysideDocDir
         

eric ide

mercurial