forked from openlp/openlp
Correct File Filter and Cleanup
bzr-revno: 1204
This commit is contained in:
commit
5ba888c520
@ -592,7 +592,7 @@ class ThemeForm(QtGui.QWizard, Ui_ThemeWizard):
|
|||||||
saveFrom = self.theme.background_filename
|
saveFrom = self.theme.background_filename
|
||||||
if not self.edit_mode and \
|
if not self.edit_mode and \
|
||||||
not self.thememanager.checkIfThemeExists(self.theme.theme_name):
|
not self.thememanager.checkIfThemeExists(self.theme.theme_name):
|
||||||
return
|
return
|
||||||
self.accepted = True
|
self.accepted = True
|
||||||
self.thememanager.saveTheme(self.theme, saveFrom, saveTo)
|
self.thememanager.saveTheme(self.theme, saveFrom, saveTo)
|
||||||
return QtGui.QDialog.accept(self)
|
return QtGui.QDialog.accept(self)
|
||||||
|
@ -388,7 +388,8 @@ class ThemeManager(QtGui.QWidget):
|
|||||||
files = QtGui.QFileDialog.getOpenFileNames(self,
|
files = QtGui.QFileDialog.getOpenFileNames(self,
|
||||||
translate('OpenLP.ThemeManager', 'Select Theme Import File'),
|
translate('OpenLP.ThemeManager', 'Select Theme Import File'),
|
||||||
SettingsManager.get_last_dir(self.settingsSection),
|
SettingsManager.get_last_dir(self.settingsSection),
|
||||||
translate('OpenLP.ThemeManager', 'Theme (*.*)'))
|
translate('OpenLP.ThemeManager', 'Theme v1 (*.theme);;'
|
||||||
|
'Theme v2 (*.otz);;All Files (*.*)'))
|
||||||
log.info(u'New Themes %s', unicode(files))
|
log.info(u'New Themes %s', unicode(files))
|
||||||
if files:
|
if files:
|
||||||
for file in files:
|
for file in files:
|
||||||
|
Loading…
Reference in New Issue
Block a user