Minor performance improvement

This commit is contained in:
Tim Bentley 2011-10-02 20:57:42 +01:00
parent c5a7127aec
commit 9f9f2186ae
2 changed files with 2 additions and 2 deletions

View File

@ -366,7 +366,7 @@ class ServiceItem(object):
self.notes = other.notes
# copy theme over if present. Assumes overridden
if other.theme is not None:
self.theme = other.theme
self.update_theme(other.theme)
if self.is_capable(ItemCapabilities.HasBackgroundAudio):
log.debug(self.background_audio)

View File

@ -1160,7 +1160,6 @@ class ServiceManager(QtGui.QWidget):
# if not passed set to config value
if expand is None:
expand = self.expandTabs
item.render()
item.from_service = True
if replace:
sitem, child = self.findServiceItem()
@ -1169,6 +1168,7 @@ class ServiceManager(QtGui.QWidget):
self.repaintServiceList(sitem, child)
self.mainwindow.liveController.replaceServiceManagerItem(item)
else:
item.render()
# nothing selected for dnd
if self.dropPosition == 0:
if isinstance(item, list):