WebBrowser/WebBrowserWindow.py

changeset 5993
4b2b9be7de14
parent 5920
e47dd106c3d6
child 6026
4773c9469880
--- a/WebBrowser/WebBrowserWindow.py	Thu Nov 23 17:50:51 2017 +0100
+++ b/WebBrowser/WebBrowserWindow.py	Sat Nov 25 13:49:54 2017 +0100
@@ -816,10 +816,8 @@
                 bookmarksManager.exportBookmarks)
         self.__actions.append(self.exportBookmarksAct)
         
-        # TODO: re-check this once printing on Windows is reliable
-##        if qVersionTuple() >= (5, 8, 0) or (
-##            not Globals.isWindowsPlatform() or qVersionTuple() >= (5, 7, 0)):
-        if not Globals.isWindowsPlatform() and qVersionTuple() >= (5, 7, 0):
+        if qVersionTuple() >= (5, 8, 0) or (
+            not Globals.isWindowsPlatform() or qVersionTuple() >= (5, 7, 0)):
             self.printAct = E5Action(
                 self.tr('Print'),
                 UI.PixmapCache.getIcon("print.png"),
@@ -856,11 +854,8 @@
         else:
             self.printPdfAct = None
         
-        # TODO: re-check this once printing on Windows is reliable
-##        if qVersionTuple() >= (5, 8, 0) or (
-##            not Globals.isWindowsPlatform() and qVersionTuple() < (5, 7, 0)):
-        if not Globals.isWindowsPlatform() and (
-                qVersionTuple() < (5, 7, 0) or qVersionTuple() >= (5, 8, 0)):
+        if qVersionTuple() >= (5, 8, 0) or (
+            not Globals.isWindowsPlatform() and qVersionTuple() < (5, 7, 0)):
             self.printPreviewAct = E5Action(
                 self.tr('Print Preview'),
                 UI.PixmapCache.getIcon("printPreview.png"),

eric ide

mercurial