WebBrowser/WebBrowserWindow.py

changeset 5542
520713d0a381
parent 5534
f9368ecf153a
child 5587
ea526b78ee6c
--- a/WebBrowser/WebBrowserWindow.py	Mon Feb 20 19:32:48 2017 +0100
+++ b/WebBrowser/WebBrowserWindow.py	Tue Feb 21 19:29:29 2017 +0100
@@ -714,8 +714,10 @@
                 bookmarksManager.exportBookmarks)
         self.__actions.append(self.exportBookmarksAct)
         
-        if qVersion() >= "5.8.0" or (
-                not Globals.isWindowsPlatform() or qVersion() >= "5.7.0"):
+        # TODO: re-check this once printing on Windows is reliable
+##        if qVersion() >= "5.8.0" or (
+##                not Globals.isWindowsPlatform() or qVersion() >= "5.7.0"):
+        if not Globals.isWindowsPlatform() and qVersion() >= "5.7.0":
             self.printAct = E5Action(
                 self.tr('Print'),
                 UI.PixmapCache.getIcon("print.png"),
@@ -733,6 +735,7 @@
         else:
             self.printAct = None
         
+        # TODO: check this on macOS
         if Globals.isLinuxPlatform() or qVersion() >= "5.7.0":
             self.printPdfAct = E5Action(
                 self.tr('Print as PDF'),
@@ -752,8 +755,11 @@
         else:
             self.printPdfAct = None
         
-        if qVersion() >= "5.8.0" or (
-                not Globals.isWindowsPlatform() and qVersion() < "5.7.0"):
+        # TODO: re-check this once printing on Windows is reliable
+##        if qVersion() >= "5.8.0" or (
+##                not Globals.isWindowsPlatform() and qVersion() < "5.7.0"):
+        if not Globals.isWindowsPlatform() and (
+                qVersion() < "5.7.0" or qVersion() >= "5.8.0"):
             self.printPreviewAct = E5Action(
                 self.tr('Print Preview'),
                 UI.PixmapCache.getIcon("printPreview.png"),

eric ide

mercurial