Load label for subscriptions on startup
This commit is contained in:
parent
6a97577356
commit
c0ad2bfd4d
|
@ -3507,6 +3507,16 @@ class MyForm(QtGui.QMainWindow):
|
||||||
for row in queryreturn:
|
for row in queryreturn:
|
||||||
fromLabel, = row
|
fromLabel, = row
|
||||||
|
|
||||||
|
if fromLabel == '': #If this address wasn't in our address book..
|
||||||
|
t = (fromAddress,)
|
||||||
|
sqlSubmitQueue.put('''select label from subscriptions where address=?''')
|
||||||
|
sqlSubmitQueue.put(t)
|
||||||
|
queryreturn = sqlReturnQueue.get()
|
||||||
|
|
||||||
|
if queryreturn <> []:
|
||||||
|
for row in queryreturn:
|
||||||
|
fromLabel, = row
|
||||||
|
|
||||||
self.ui.tableWidgetInbox.insertRow(0)
|
self.ui.tableWidgetInbox.insertRow(0)
|
||||||
newItem = QtGui.QTableWidgetItem(unicode(toLabel,'utf-8'))
|
newItem = QtGui.QTableWidgetItem(unicode(toLabel,'utf-8'))
|
||||||
newItem.setFlags( QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEnabled )
|
newItem.setFlags( QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEnabled )
|
||||||
|
|
Loading…
Reference in New Issue
Block a user