print form constructor

This commit is contained in:
Andreas Preikschat 2013-07-07 16:16:55 +02:00
parent 83df3c293a
commit 1328ca62d2

View File

@ -118,7 +118,7 @@ class PrintServiceForm(QtGui.QDialog, Ui_PrintServiceDialog):
"""
Constructor
"""
QtGui.QDialog.__init__(self, self.main_window)
QtGui.QDialog.__init__(self, Registry().get('main_window'))
self.printer = QtGui.QPrinter()
self.print_dialog = QtGui.QPrintDialog(self.printer, self)
self.document = QtGui.QTextDocument()