Fixed an issue in __addSearchEngine of the help browser. 6_1_x

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 14 Feb 2016 13:09:41 +0100
branch
6_1_x
changeset 4740
b5cff5645b36
parent 4737
5aa3d09c3f64
child 4747
9d9e5ca1eb48

Fixed an issue in __addSearchEngine of the help browser.
(grafted from dc1a0d2e326354d2717c8735fabc92bfe6e36bdc)

Helpviewer/HelpBrowserWV.py file | annotate | diff | comparison | revisions
--- a/Helpviewer/HelpBrowserWV.py	Sun Feb 14 12:25:33 2016 +0100
+++ b/Helpviewer/HelpBrowserWV.py	Sun Feb 14 13:09:41 2016 +0100
@@ -1698,7 +1698,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