(self, item, column)
| 3958 | self.loadMessagelist(messagelist, account, folder, searchOption, searchLine) |
| 3959 | |
| 3960 | def treeWidgetItemChanged(self, item, column): |
| 3961 | # only for manual edits. automatic edits (setText) are ignored |
| 3962 | if column != 0: |
| 3963 | return |
| 3964 | # only account names of normal addresses (no chans/mailinglists) |
| 3965 | if (not isinstance(item, Ui_AddressWidget)) or (not self.getCurrentTreeWidget()) or self.getCurrentTreeWidget().currentItem() is None: |
| 3966 | return |
| 3967 | # not visible |
| 3968 | if (not self.getCurrentItem()) or (not isinstance (self.getCurrentItem(), Ui_AddressWidget)): |
| 3969 | return |
| 3970 | # only currently selected item |
| 3971 | if item.address != self.getCurrentAccount(): |
| 3972 | return |
| 3973 | # "All accounts" can't be renamed |
| 3974 | if item.type == AccountMixin.ALL: |
| 3975 | return |
| 3976 | |
| 3977 | newLabel = unicode(item.text(0), 'utf-8', 'ignore') |
| 3978 | oldLabel = item.defaultLabel() |
| 3979 | |
| 3980 | # unchanged, do not do anything either |
| 3981 | if newLabel == oldLabel: |
| 3982 | return |
| 3983 | |
| 3984 | # recursion prevention |
| 3985 | if self.recurDepth > 0: |
| 3986 | return |
| 3987 | |
| 3988 | self.recurDepth += 1 |
| 3989 | if item.type == AccountMixin.NORMAL or item.type == AccountMixin.MAILINGLIST: |
| 3990 | self.rerenderComboBoxSendFromBroadcast() |
| 3991 | if item.type == AccountMixin.NORMAL or item.type == AccountMixin.CHAN: |
| 3992 | self.rerenderComboBoxSendFrom() |
| 3993 | self.rerenderMessagelistFromLabels() |
| 3994 | if item.type != AccountMixin.SUBSCRIPTION: |
| 3995 | self.rerenderMessagelistToLabels() |
| 3996 | if item.type in (AccountMixin.NORMAL, AccountMixin.CHAN, AccountMixin.SUBSCRIPTION): |
| 3997 | self.rerenderAddressBook() |
| 3998 | self.recurDepth -= 1 |
| 3999 | |
| 4000 | def tableWidgetInboxItemClicked(self): |
| 4001 | folder = self.getCurrentFolder() |
nothing calls this directly
no test coverage detected