Bug #923500: Do not mark service changed when accepting settings dialog.

This commit is contained in:
M2j 2012-04-02 17:33:54 +02:00
parent 9d3093a99f
commit 40774f6375

View File

@ -1106,7 +1106,7 @@ class ServiceManager(QtGui.QWidget):
self.mainwindow.servicemanagerSettingsSection + self.mainwindow.servicemanagerSettingsSection +
u'/service theme', u'/service theme',
QtCore.QVariant(self.service_theme)) QtCore.QVariant(self.service_theme))
self.regenerateServiceItems() self.regenerateServiceItems(True)
def themeChange(self): def themeChange(self):
""" """
@ -1118,7 +1118,7 @@ class ServiceManager(QtGui.QWidget):
self.themeLabel.setVisible(visible) self.themeLabel.setVisible(visible)
self.themeComboBox.setVisible(visible) self.themeComboBox.setVisible(visible)
def regenerateServiceItems(self): def regenerateServiceItems(self, changed=False):
""" """
Rebuild the service list as things have changed and a Rebuild the service list as things have changed and a
repaint is the easiest way to do this. repaint is the easiest way to do this.
@ -1154,6 +1154,7 @@ class ServiceManager(QtGui.QWidget):
repaint=False, selected=item[u'selected']) repaint=False, selected=item[u'selected'])
# Set to False as items may have changed rendering # Set to False as items may have changed rendering
# does not impact the saved song so True may also be valid # does not impact the saved song so True may also be valid
if changed:
self.setModified() self.setModified()
# Repaint it once only at the end # Repaint it once only at the end
self.repaintServiceList(-1, -1) self.repaintServiceList(-1, -1)
@ -1439,7 +1440,7 @@ class ServiceManager(QtGui.QWidget):
theme = None theme = None
item = self.findServiceItem()[0] item = self.findServiceItem()[0]
self.serviceItems[item][u'service_item'].update_theme(theme) self.serviceItems[item][u'service_item'].update_theme(theme)
self.regenerateServiceItems() self.regenerateServiceItems(True)
def _getParentItemData(self, item): def _getParentItemData(self, item):
parentitem = item.parent() parentitem = item.parent()