Enabling/disabling color propagation

Fixes #105
This commit is contained in:
mailchuck 2015-11-11 01:02:23 +01:00 committed by Peter Surda
parent a85e9ed20e
commit 8f5d177690

View File

@ -42,6 +42,10 @@ class AccountMixin (object):
self.isEnabled = enabled
if hasattr(self, "setExpanded"):
self.setExpanded(enabled)
if isinstance(self, Ui_AddressWidget):
for i in range(self.childCount()):
if isinstance(self.child(i), Ui_FolderWidget):
self.child(i).setEnabled(enabled)
self.updateText()
def setType(self):