change theme name to 'Copy of <theme name>' when copying a theme

This commit is contained in:
Andreas Preikschat 2011-06-26 19:33:22 +02:00
parent e6cab2ce84
commit f2a243cfb4
1 changed files with 3 additions and 0 deletions

View File

@ -299,6 +299,9 @@ class ThemeManager(QtGui.QWidget):
"""
item = self.themeListWidget.currentItem()
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)
if self.fileRenameForm.exec_(True):
newThemeName = unicode(self.fileRenameForm.fileNameEdit.text())