works now

This commit is contained in:
Andreas Preikschat 2013-06-23 19:32:25 +02:00
parent 8fe2aed62f
commit 0fee84cbb6

View File

@ -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)