Sent in chans and subscriptions columns

Now it shows "from" instead of "to" column when selecting sent folder in
subscriptions or chans.

Fixes #53
This commit is contained in:
mailchuck 2015-10-23 19:23:16 +02:00
parent 676ea5544e
commit 17b43df474
No known key found for this signature in database
GPG Key ID: B6311FA753FBF089

View File

@ -883,14 +883,15 @@ class MyForm(QtGui.QMainWindow):
else:
where = "toaddress || fromaddress || subject || message"
tableWidget.setColumnHidden(0, False)
tableWidget.setColumnHidden(1, True)
tableWidget.setSortingEnabled(False)
if tableWidget == self.ui.tableWidgetInboxChans or tableWidget == self.ui.tableWidgetInboxSubscriptions:
tableWidget.setColumnHidden(0, True)
tableWidget.setColumnHidden(1, False)
xAddress = 'toaddress'
else:
tableWidget.setColumnHidden(0, False)
tableWidget.setColumnHidden(1, True)
xAddress = 'fromaddress'
sqlStatement = '''