QScintilla/Editor.py

branch
6_0_x
changeset 4075
f8757a7414b3
parent 4030
c120b267fc0f
child 4133
3d868439dddc
--- a/QScintilla/Editor.py	Wed Jan 28 19:38:57 2015 +0100
+++ b/QScintilla/Editor.py	Thu Jan 29 19:57:19 2015 +0100
@@ -2395,7 +2395,7 @@
         sb = e5App().getObject("UserInterface").statusBar()
         printDialog = QPrintDialog(printer, self)
         if self.hasSelectedText():
-            printDialog.addEnabledOption(QAbstractPrintDialog.PrintSelection)
+            printDialog.setOption(QAbstractPrintDialog.PrintSelection, True)
         if printDialog.exec_() == QDialog.Accepted:
             sb.showMessage(self.tr('Printing...'))
             QApplication.processEvents()

eric ide

mercurial