diff -r 2a3c730dbb58 -r 83f86da6344e Helpviewer/HelpBrowserWV.py --- a/Helpviewer/HelpBrowserWV.py Mon Oct 21 19:25:12 2013 +0200 +++ b/Helpviewer/HelpBrowserWV.py Sat Oct 26 17:37:39 2013 +0200 @@ -2308,7 +2308,9 @@ Preferences.getPrinter("BottomMargin") * 10, QPrinter.Millimeter ) - printer.setPrinterName(Preferences.getPrinter("PrinterName")) + printerName = Preferences.getPrinter("PrinterName") + if printerName: + self.setPrinterName(printerName) printDialog = QPrintDialog(printer, self) if printDialog.exec_() == QDialog.Accepted: @@ -2344,7 +2346,9 @@ Preferences.getPrinter("BottomMargin") * 10, QPrinter.Millimeter ) - printer.setPrinterName(Preferences.getPrinter("PrinterName")) + printerName = Preferences.getPrinter("PrinterName") + if printerName: + self.setPrinterName(printerName) preview = QPrintPreviewDialog(printer, self) preview.paintRequested.connect(self.__generatePrintPreviewClickedFrame) @@ -2376,7 +2380,9 @@ printer.setColorMode(QPrinter.Color) else: printer.setColorMode(QPrinter.GrayScale) - printer.setPrinterName(Preferences.getPrinter("PrinterName")) + printerName = Preferences.getPrinter("PrinterName") + if printerName: + self.setPrinterName(printerName) printer.setOutputFormat(QPrinter.PdfFormat) name = self.__clickedFrame.url().path().rsplit('/', 1)[-1] if name: