parent
1d86f7a699
commit
39dc34b158
|
@ -416,7 +416,7 @@ class MyForm(QtGui.QMainWindow):
|
||||||
|
|
||||||
def rerenderTabTreeSubscriptions(self):
|
def rerenderTabTreeSubscriptions(self):
|
||||||
treeWidget = self.ui.treeWidgetSubscriptions
|
treeWidget = self.ui.treeWidgetSubscriptions
|
||||||
folders = ['inbox', 'trash']
|
folders = ['inbox', 'sent', 'trash']
|
||||||
treeWidget.clear()
|
treeWidget.clear()
|
||||||
treeWidget.setSortingEnabled(False)
|
treeWidget.setSortingEnabled(False)
|
||||||
treeWidget.header().setSortIndicator(0, Qt.AscendingOrder)
|
treeWidget.header().setSortIndicator(0, Qt.AscendingOrder)
|
||||||
|
@ -455,10 +455,9 @@ class MyForm(QtGui.QMainWindow):
|
||||||
def rerenderTabTree(self, tab):
|
def rerenderTabTree(self, tab):
|
||||||
if tab == 'messages':
|
if tab == 'messages':
|
||||||
treeWidget = self.ui.treeWidgetYourIdentities
|
treeWidget = self.ui.treeWidgetYourIdentities
|
||||||
folders = ['inbox', 'sent', 'trash']
|
|
||||||
elif tab == 'chan':
|
elif tab == 'chan':
|
||||||
treeWidget = self.ui.treeWidgetChans
|
treeWidget = self.ui.treeWidgetChans
|
||||||
folders = ['inbox', 'trash']
|
folders = ['inbox', 'sent', 'trash']
|
||||||
|
|
||||||
# sort ascending when creating
|
# sort ascending when creating
|
||||||
if treeWidget.topLevelItemCount() == 0:
|
if treeWidget.topLevelItemCount() == 0:
|
||||||
|
@ -889,9 +888,14 @@ class MyForm(QtGui.QMainWindow):
|
||||||
tableWidget.setColumnHidden(1, True)
|
tableWidget.setColumnHidden(1, True)
|
||||||
tableWidget.setSortingEnabled(False)
|
tableWidget.setSortingEnabled(False)
|
||||||
|
|
||||||
|
if tableWidget == self.ui.tableWidgetInboxChans or tableWidget == self.ui.tableWidgetInboxSubscriptions:
|
||||||
|
xAddress = 'toaddress'
|
||||||
|
else:
|
||||||
|
xAddress = 'fromaddress'
|
||||||
|
|
||||||
sqlStatement = '''
|
sqlStatement = '''
|
||||||
SELECT toaddress, fromaddress, subject, status, ackdata, lastactiontime
|
SELECT toaddress, fromaddress, subject, status, ackdata, lastactiontime
|
||||||
FROM sent WHERE fromaddress=? AND folder="sent" AND %s LIKE ?
|
FROM sent WHERE ''' + xAddress + '''=? AND folder="sent" AND %s LIKE ?
|
||||||
ORDER BY lastactiontime
|
ORDER BY lastactiontime
|
||||||
''' % (where,)
|
''' % (where,)
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user