forked from openlp/openlp
cough
This commit is contained in:
parent
2f3a5d1fb2
commit
2b38081b47
@ -173,7 +173,6 @@ class OpenLP(QtGui.QApplication):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
def hookException(self, exctype, value, traceback):
|
def hookException(self, exctype, value, traceback):
|
||||||
print ''.join(format_exception(exctype, value, traceback))
|
|
||||||
if not hasattr(self, u'mainWindow'):
|
if not hasattr(self, u'mainWindow'):
|
||||||
log.exception(''.join(format_exception(exctype, value, traceback)))
|
log.exception(''.join(format_exception(exctype, value, traceback)))
|
||||||
return
|
return
|
||||||
|
@ -276,14 +276,9 @@ class OpenLPWizard(QtGui.QWizard):
|
|||||||
``setting_name``
|
``setting_name``
|
||||||
The place where to save the last opened directory.
|
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,
|
folder = QtGui.QFileDialog.getExistingDirectory(self, title,
|
||||||
Settings().value(self.plugin.settingsSection + u'/' + setting_name),
|
Settings().value(self.plugin.settingsSection + u'/' + setting_name),
|
||||||
QtGui.QFileDialog.ShowDirsOnly)
|
QtGui.QFileDialog.ShowDirsOnly)
|
||||||
print os.path.dirname(Settings().value(self.plugin.settingsSection + u'/' + setting_name))
|
|
||||||
if folder:
|
if folder:
|
||||||
editbox.setText(folder)
|
editbox.setText(folder
|
||||||
print folder
|
|
||||||
Settings().setValue(self.plugin.settingsSection + u'/' + setting_name, folder)
|
Settings().setValue(self.plugin.settingsSection + u'/' + setting_name, folder)
|
||||||
|
Loading…
Reference in New Issue
Block a user