forked from openlp/openlp
change theme name to 'Copy of <theme name>' when copying a theme
This commit is contained in:
parent
e6cab2ce84
commit
f2a243cfb4
@ -299,6 +299,9 @@ class ThemeManager(QtGui.QWidget):
|
|||||||
"""
|
"""
|
||||||
item = self.themeListWidget.currentItem()
|
item = self.themeListWidget.currentItem()
|
||||||
oldThemeName = unicode(item.data(QtCore.Qt.UserRole).toString())
|
oldThemeName = unicode(item.data(QtCore.Qt.UserRole).toString())
|
||||||
|
oldThemeName = unicode(
|
||||||
|
translate('OpenLP.ThemeManager', 'Copy of %s',
|
||||||
|
'Copy of <theme name>')) % oldThemeName
|
||||||
self.fileRenameForm.fileNameEdit.setText(oldThemeName)
|
self.fileRenameForm.fileNameEdit.setText(oldThemeName)
|
||||||
if self.fileRenameForm.exec_(True):
|
if self.fileRenameForm.exec_(True):
|
||||||
newThemeName = unicode(self.fileRenameForm.fileNameEdit.text())
|
newThemeName = unicode(self.fileRenameForm.fileNameEdit.text())
|
||||||
|
Loading…
Reference in New Issue
Block a user