forked from openlp/openlp
Block delete of default theme
This commit is contained in:
parent
57f2010480
commit
3bb309e623
@ -684,6 +684,13 @@ class ThemeManager(QtGui.QWidget):
|
|||||||
QtGui.QMessageBox.No)
|
QtGui.QMessageBox.No)
|
||||||
if answer == QtGui.QMessageBox.No:
|
if answer == QtGui.QMessageBox.No:
|
||||||
return False
|
return False
|
||||||
|
# should be the same unless default
|
||||||
|
if theme != unicode(item.data(QtCore.Qt.UserRole).toString()):
|
||||||
|
QtGui.QMessageBox.critical(self,
|
||||||
|
translate('OpenLP.ThemeManager', 'Error'),
|
||||||
|
translate('OpenLP.ThemeManager',
|
||||||
|
'You are unable to delete the default theme.'))
|
||||||
|
return False
|
||||||
# check for use in the system else where.
|
# check for use in the system else where.
|
||||||
if testPlugin:
|
if testPlugin:
|
||||||
for plugin in self.parent.pluginManager.plugins:
|
for plugin in self.parent.pluginManager.plugins:
|
||||||
|
Loading…
Reference in New Issue
Block a user