forked from openlp/openlp
fix bug #695136
This commit is contained in:
parent
31721c51d6
commit
3ef0098c07
@ -272,8 +272,8 @@ class SongImportForm(QtGui.QWizard, Ui_SongImportWizard):
|
|||||||
filters += u'%s (*)' % translate('SongsPlugin.ImportWizardForm',
|
filters += u'%s (*)' % translate('SongsPlugin.ImportWizardForm',
|
||||||
'All Files')
|
'All Files')
|
||||||
filename = QtGui.QFileDialog.getOpenFileName(self, title,
|
filename = QtGui.QFileDialog.getOpenFileName(self, title,
|
||||||
os.path.dirname(SettingsManager.get_last_dir(
|
SettingsManager.get_last_dir(self.plugin.settingsSection, 1),
|
||||||
self.plugin.settingsSection, 1)), filters)
|
filters)
|
||||||
if filename:
|
if filename:
|
||||||
editbox.setText(filename)
|
editbox.setText(filename)
|
||||||
SettingsManager.set_last_dir(self.plugin.settingsSection,
|
SettingsManager.set_last_dir(self.plugin.settingsSection,
|
||||||
@ -300,8 +300,8 @@ class SongImportForm(QtGui.QWizard, Ui_SongImportWizard):
|
|||||||
filters += u'%s (*)' % translate('SongsPlugin.ImportWizardForm',
|
filters += u'%s (*)' % translate('SongsPlugin.ImportWizardForm',
|
||||||
'All Files')
|
'All Files')
|
||||||
filenames = QtGui.QFileDialog.getOpenFileNames(self, title,
|
filenames = QtGui.QFileDialog.getOpenFileNames(self, title,
|
||||||
os.path.dirname(SettingsManager.get_last_dir(
|
SettingsManager.get_last_dir(self.plugin.settingsSection, 1),
|
||||||
self.plugin.settingsSection, 1)), filters)
|
filters)
|
||||||
if filenames:
|
if filenames:
|
||||||
listbox.addItems(filenames)
|
listbox.addItems(filenames)
|
||||||
SettingsManager.set_last_dir(
|
SettingsManager.set_last_dir(
|
||||||
|
Loading…
Reference in New Issue
Block a user