V0.6 #852

Merged
Atheros1 merged 399 commits from v0.6 into master 2016-05-03 01:58:38 +02:00
3 changed files with 5 additions and 1 deletions
Showing only changes of commit a4c48228fc - Show all commits

View File

@ -1040,7 +1040,7 @@ class MyForm(settingsmixin.SMainWindow):
def addMessageListItemInbox(self, tableWidget, msgfolder, msgid, toAddress, fromAddress, subject, received, read):
font = QFont()
font.setBold(True)
if tableWidget == self.ui.tableWidgetInboxSubscriptions:
if toAddress == str_broadcast_subscribers:
acct = accountClass(fromAddress)
else:
acct = accountClass(toAddress)

View File

@ -40,6 +40,7 @@ def getSortedSubscriptions(count = False):
def accountClass(address):
if not shared.config.has_section(address):
# FIXME: This BROADCAST section makes no sense
if address == str_broadcast_subscribers:
subscription = BroadcastAccount(address)
if subscription.type != AccountMixin.BROADCAST:

View File

@ -69,6 +69,9 @@ class AccountMixin (object):
self.type = self.CHAN
elif shared.safeConfigGetBoolean(self.address, 'mailinglist'):
self.type = self.MAILINGLIST
elif sqlQuery(
'''select label from subscriptions where address=?''', self.address):
self.type = AccountMixin.SUBSCRIPTION
else:
self.type = self.NORMAL