From 1328ca62d210b76068cf260c140ae7de8371ccff Mon Sep 17 00:00:00 2001 From: Andreas Preikschat Date: Sun, 7 Jul 2013 16:16:55 +0200 Subject: [PATCH] print form constructor --- openlp/core/ui/printserviceform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openlp/core/ui/printserviceform.py b/openlp/core/ui/printserviceform.py index 37a170224..c285662bb 100644 --- a/openlp/core/ui/printserviceform.py +++ b/openlp/core/ui/printserviceform.py @@ -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()