From f876898033e3ff4f030999ddeba33c47f181ec63 Mon Sep 17 00:00:00 2001 From: M2j Date: Mon, 2 Apr 2012 15:46:41 +0200 Subject: [PATCH] Bug #959760: Change theme manager delete button visibility on default theme change. --- openlp/core/ui/thememanager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openlp/core/ui/thememanager.py b/openlp/core/ui/thememanager.py index 72a8b7e3b..421346ba9 100644 --- a/openlp/core/ui/thememanager.py +++ b/openlp/core/ui/thememanager.py @@ -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): """