WebBrowser/WebBrowserWindow.py

changeset 5534
f9368ecf153a
parent 5530
93f95c4b3153
child 5542
520713d0a381
--- a/WebBrowser/WebBrowserWindow.py	Sun Feb 19 19:57:28 2017 +0100
+++ b/WebBrowser/WebBrowserWindow.py	Mon Feb 20 19:27:37 2017 +0100
@@ -714,8 +714,8 @@
                 bookmarksManager.exportBookmarks)
         self.__actions.append(self.exportBookmarksAct)
         
-        if not Globals.isWindowsPlatform() or \
-                qVersion() >= "5.7.0":
+        if qVersion() >= "5.8.0" or (
+                not Globals.isWindowsPlatform() or qVersion() >= "5.7.0"):
             self.printAct = E5Action(
                 self.tr('Print'),
                 UI.PixmapCache.getIcon("print.png"),
@@ -752,7 +752,8 @@
         else:
             self.printPdfAct = None
         
-        if not Globals.isWindowsPlatform() and qVersion() < "5.7.0":
+        if qVersion() >= "5.8.0" or (
+                not Globals.isWindowsPlatform() and qVersion() < "5.7.0"):
             self.printPreviewAct = E5Action(
                 self.tr('Print Preview'),
                 UI.PixmapCache.getIcon("printPreview.png"),

eric ide

mercurial