Bug #959760: Change theme manager delete button visibility on default theme change.

bzr-revno: 1927
Fixes: https://launchpad.net/bugs/959760
This commit is contained in:
Meinert Jordan 2012-04-02 23:06:16 +02:00 committed by Raoul Snyman
commit 22d29e7d62

View File

@ -220,6 +220,8 @@ class ThemeManager(QtGui.QWidget):
name = unicode(translate('OpenLP.ThemeManager',
'%s (default)')) % new_name
self.themeListWidget.item(count).setText(name)
self.deleteToolbarAction.setVisible(
item not in self.themeListWidget.selectedItems())
def changeGlobalFromScreen(self, index=-1):
"""