Enabling/disabling color propagation

Fixes #105
This commit is contained in:
mailchuck 2015-11-11 01:02:23 +01:00
parent 78734d81a1
commit 23b8811add
Signed by untrusted user who does not match committer: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -42,6 +42,10 @@ class AccountMixin (object):
self.isEnabled = enabled self.isEnabled = enabled
if hasattr(self, "setExpanded"): if hasattr(self, "setExpanded"):
self.setExpanded(enabled) 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() self.updateText()
def setType(self): def setType(self):