QScintilla/Editor.py

changeset 4074
95c24977f68f
parent 4029
59ab6030869b
child 4133
3d868439dddc
diff -r b9feda1dcf1a -r 95c24977f68f QScintilla/Editor.py
--- a/QScintilla/Editor.py	Wed Jan 28 20:21:26 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