From 0517f3d8d7ca87868648343aa71f8eaad29a6211 Mon Sep 17 00:00:00 2001 From: Andreas Preikschat Date: Wed, 23 May 2012 18:59:28 +0200 Subject: [PATCH] renamed attribute --- openlp/core/ui/mainwindow.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/openlp/core/ui/mainwindow.py b/openlp/core/ui/mainwindow.py index 6deb769af..20a2551d0 100644 --- a/openlp/core/ui/mainwindow.py +++ b/openlp/core/ui/mainwindow.py @@ -542,15 +542,15 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow): """ log.info(u'MainWindow loaded') - def __init__(self, parent): + def __init__(self, application): """ This constructor sets up the interface, the various managers, and the plugins. """ QtGui.QMainWindow.__init__(self) - self.parent = lambda: parent - self.clipboard = self.mainwindow().clipboard() - self.arguments = self.mainwindow().args + self.application = lambda: application + self.clipboard = self.application().clipboard() + self.arguments = self.application().args # Set up settings sections for the main application # (not for use by plugins) self.uiSettingsSection = u'user interface' @@ -1135,7 +1135,7 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow): """ # The MainApplication did not even enter the event loop (this happens # when OpenLP is not fully loaded). Just ignore the event. - if not self.mainwindow().eventLoopIsActive: + if not self.application().eventLoopIsActive: event.ignore() return # If we just did a settings import, close without saving changes.