Helpviewer/HelpTabWidget.py

branch
5_3_x
changeset 3162
5cb6da893fad
parent 3049
a6847e5eb1b9
child 3163
9f50365a0870
diff -r 0515293f05eb -r 5cb6da893fad Helpviewer/HelpTabWidget.py
--- a/Helpviewer/HelpTabWidget.py	Thu Dec 26 18:36:22 2013 +0100
+++ b/Helpviewer/HelpTabWidget.py	Fri Dec 27 11:39:08 2013 +0100
@@ -492,7 +492,7 @@
         )
         printerName = Preferences.getPrinter("PrinterName")
         if printerName:
-            self.setPrinterName(printerName)
+            printer.setPrinterName(printerName)
         
         printDialog = QPrintDialog(printer, self)
         if printDialog.exec_() == QDialog.Accepted:
@@ -529,7 +529,7 @@
             printer.setColorMode(QPrinter.GrayScale)
         printerName = Preferences.getPrinter("PrinterName")
         if printerName:
-            self.setPrinterName(printerName)
+            printer.setPrinterName(printerName)
         printer.setOutputFormat(QPrinter.PdfFormat)
         name = frame.url().path().rsplit('/', 1)[-1]
         if name:
@@ -577,7 +577,7 @@
         )
         printerName = Preferences.getPrinter("PrinterName")
         if printerName:
-            self.setPrinterName(printerName)
+            printer.setPrinterName(printerName)
         
         self.__printPreviewBrowser = browser
         preview = QPrintPreviewDialog(printer, self)

eric ide

mercurial