From 0fee84cbb6dc02d7ed91ecf5a11f3cef2e080928 Mon Sep 17 00:00:00 2001 From: Andreas Preikschat Date: Sun, 23 Jun 2013 19:32:25 +0200 Subject: [PATCH] works now --- openlp/core/ui/filerenameform.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/openlp/core/ui/filerenameform.py b/openlp/core/ui/filerenameform.py index a53695426..51dd95b7c 100644 --- a/openlp/core/ui/filerenameform.py +++ b/openlp/core/ui/filerenameform.py @@ -59,12 +59,12 @@ class FileRenameForm(QtGui.QDialog, Ui_FileRenameDialog): self.file_name_edit.setFocus() return QtGui.QDialog.exec_(self) -# def _get_main_window(self): -# """ -# Adds the main window to the class dynamically -# """ -# if not hasattr(self, u'_main_window'): -# self._main_window = Registry().get(u'main_window') -# return self._main_window -# -# main_window = property(_get_main_window) + def _get_main_window(self): + """ + Adds the main window to the class dynamically + """ + if not hasattr(self, u'_main_window'): + self._main_window = Registry().get(u'main_window') + return self._main_window + + main_window = property(_get_main_window)