parent
5b12f2dffa
commit
7998d77b9c
|
@ -2178,13 +2178,15 @@ class MyForm(QtGui.QMainWindow):
|
||||||
|
|
||||||
def rerenderComboBoxSendFromBroadcast(self):
|
def rerenderComboBoxSendFromBroadcast(self):
|
||||||
self.ui.comboBoxSendFromBroadcast.clear()
|
self.ui.comboBoxSendFromBroadcast.clear()
|
||||||
queryreturn = sqlQuery(
|
configSections = shared.config.sections()
|
||||||
'''select label, address from subscriptions where enabled = 1'''
|
for addressInKeysFile in configSections:
|
||||||
)
|
if addressInKeysFile != 'bitmessagesettings':
|
||||||
|
isEnabled = shared.config.getboolean(
|
||||||
for row in queryreturn:
|
addressInKeysFile, 'enabled') # I realize that this is poor programming practice but I don't care. It's easier for others to read.
|
||||||
label, address = row
|
isMaillinglist = shared.safeConfigGetBoolean(addressInKeysFile, 'mailinglist')
|
||||||
self.ui.comboBoxSendFromBroadcast.insertItem(0, avatarize(address), unicode(label, 'utf-8'), address)
|
if isEnabled and isMaillinglist:
|
||||||
|
self.ui.comboBoxSendFromBroadcast.insertItem(0, avatarize(addressInKeysFile), unicode(shared.config.get(
|
||||||
|
addressInKeysFile, 'label'), 'utf-8'), addressInKeysFile)
|
||||||
self.ui.comboBoxSendFromBroadcast.insertItem(0, '', '')
|
self.ui.comboBoxSendFromBroadcast.insertItem(0, '', '')
|
||||||
if(self.ui.comboBoxSendFromBroadcast.count() == 2):
|
if(self.ui.comboBoxSendFromBroadcast.count() == 2):
|
||||||
self.ui.comboBoxSendFromBroadcast.setCurrentIndex(1)
|
self.ui.comboBoxSendFromBroadcast.setCurrentIndex(1)
|
||||||
|
|
Reference in New Issue
Block a user