From ad25d42fb5528f40972e1d19d63dafb23a2b23e9 Mon Sep 17 00:00:00 2001 From: Jonathan Corwin Date: Mon, 28 Mar 2011 21:53:26 +0100 Subject: [PATCH] If I'm going to make changes, I should really start from a clean slate... --- openlp.pyw | 14 +++++++------- openlp/core/ui/mainwindow.py | 2 -- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/openlp.pyw b/openlp.pyw index c9c5294b5..0ad64e9e2 100755 --- a/openlp.pyw +++ b/openlp.pyw @@ -78,13 +78,13 @@ class OpenLP(QtGui.QApplication): class in order to provide the core of the application. """ - #def exec_(self): - #""" - #Override exec method to allow the shared memory to be released on exit - #""" - #return QtGui.QApplication.exec_() - #self.sharedMemory.detach() - #return i + def exec_(self): + """ + Override exec method to allow the shared memory to be released on exit + """ + return QtGui.QApplication.exec_() + self.sharedMemory.detach() + return i def run(self): """ diff --git a/openlp/core/ui/mainwindow.py b/openlp/core/ui/mainwindow.py index d5b5957be..38775d68e 100644 --- a/openlp/core/ui/mainwindow.py +++ b/openlp/core/ui/mainwindow.py @@ -476,8 +476,6 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow): """ QtGui.QMainWindow.__init__(self) self.screens = screens - - #self.application = application self.clipboard = clipboard self.arguments = arguments # Set up settings sections for the main application