WebBrowser/WebBrowserTabWidget.py

changeset 5993
4b2b9be7de14
parent 5806
2405d595c9cf
child 6026
4773c9469880
--- a/WebBrowser/WebBrowserTabWidget.py	Thu Nov 23 17:50:51 2017 +0100
+++ b/WebBrowser/WebBrowserTabWidget.py	Sat Nov 25 13:49:54 2017 +0100
@@ -185,18 +185,13 @@
         self.__tabContextMenu.addAction(
             self.tr('Close All'), self.closeAllBrowsers)
         self.__tabContextMenu.addSeparator()
-        # 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.__tabContextMenu.addAction(
                 UI.PixmapCache.getIcon("printPreview.png"),
                 self.tr('Print Preview'), self.__tabContextMenuPrintPreview)
-        # 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.__tabContextMenu.addAction(
                 UI.PixmapCache.getIcon("print.png"),
                 self.tr('Print'), self.__tabContextMenuPrint)

eric ide

mercurial