forked from openlp/openlp
attribute instead of method
This commit is contained in:
parent
0517f3d8d7
commit
56b02b02b1
@ -548,9 +548,9 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
|
|||||||
plugins.
|
plugins.
|
||||||
"""
|
"""
|
||||||
QtGui.QMainWindow.__init__(self)
|
QtGui.QMainWindow.__init__(self)
|
||||||
self.application = lambda: application
|
self.application = application
|
||||||
self.clipboard = self.application().clipboard()
|
self.clipboard = self.application.clipboard()
|
||||||
self.arguments = self.application().args
|
self.arguments = self.application.args
|
||||||
# Set up settings sections for the main application
|
# Set up settings sections for the main application
|
||||||
# (not for use by plugins)
|
# (not for use by plugins)
|
||||||
self.uiSettingsSection = u'user interface'
|
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
|
# The MainApplication did not even enter the event loop (this happens
|
||||||
# when OpenLP is not fully loaded). Just ignore the event.
|
# when OpenLP is not fully loaded). Just ignore the event.
|
||||||
if not self.application().eventLoopIsActive:
|
if not self.application.eventLoopIsActive:
|
||||||
event.ignore()
|
event.ignore()
|
||||||
return
|
return
|
||||||
# If we just did a settings import, close without saving changes.
|
# If we just did a settings import, close without saving changes.
|
||||||
|
Loading…
Reference in New Issue
Block a user