Sat, 19 Jun 2010 19:33:43 +0200
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