Fixed an issue showing help on Windows. 5_0_x

Sat, 19 Jun 2010 19:33:43 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 19 Jun 2010 19:33:43 +0200
branch
5_0_x
changeset 356
4deb1aa438db
parent 352
a14693e59198
child 361
6f27ebf7a105

Fixed an issue showing help on Windows.

UI/UserInterface.py file | annotate | diff | comparison | revisions
--- a/UI/UserInterface.py	Mon Jun 14 19:40:17 2010 +0200
+++ b/UI/UserInterface.py	Sat Jun 19 19:33:43 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