Fixed an issue in __addSearchEngine of the help browser.

Sun, 14 Feb 2016 13:09:41 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 14 Feb 2016 13:09:41 +0100
changeset 4738
dc1a0d2e3263
parent 4736
4e405ee14fb5
child 4739
bbd2cc223fc7

Fixed an issue in __addSearchEngine of the help browser.

Helpviewer/HelpBrowserWV.py file | annotate | diff | comparison | revisions
diff -r 4e405ee14fb5 -r dc1a0d2e3263 Helpviewer/HelpBrowserWV.py
--- a/Helpviewer/HelpBrowserWV.py	Sun Feb 14 12:25:33 2016 +0100
+++ b/Helpviewer/HelpBrowserWV.py	Sun Feb 14 13:09:41 2016 +0100
@@ -1705,7 +1705,11 @@
         engine = OpenSearchEngine()
         engine.setName(engineName)
         engine.setDescription(engineName)
-        engine.setSearchUrlTemplate(searchUrl.toString())
+        if qVersion() >= "5.0.0":
+            engine.setSearchUrlTemplate(
+                searchUrl.toDisplayString(QUrl.FullyDecoded))
+        else:
+            engine.setSearchUrlTemplate(searchUrl.toString())
         engine.setImage(self.icon().pixmap(16, 16).toImage())
         
         self.mw.openSearchManager().addEngine(engine)

eric ide

mercurial