This commit is contained in:
Andreas Preikschat 2013-01-18 21:55:03 +01:00
parent 2f3a5d1fb2
commit 2b38081b47
2 changed files with 1 additions and 7 deletions

View File

@ -173,7 +173,6 @@ class OpenLP(QtGui.QApplication):
return False
def hookException(self, exctype, value, traceback):
print ''.join(format_exception(exctype, value, traceback))
if not hasattr(self, u'mainWindow'):
log.exception(''.join(format_exception(exctype, value, traceback)))
return

View File

@ -276,14 +276,9 @@ class OpenLPWizard(QtGui.QWizard):
``setting_name``
The place where to save the last opened directory.
"""
print setting_name
print u'asdf', Settings().value(self.plugin.settingsSection + u'/' + setting_name)
folder = QtGui.QFileDialog.getExistingDirectory(self, title,
Settings().value(self.plugin.settingsSection + u'/' + setting_name),
QtGui.QFileDialog.ShowDirsOnly)
print os.path.dirname(Settings().value(self.plugin.settingsSection + u'/' + setting_name))
if folder:
editbox.setText(folder)
print folder
editbox.setText(folder
Settings().setValue(self.plugin.settingsSection + u'/' + setting_name, folder)