Skip to content

Commit 17b43df

Browse files
committed
Sent in chans and subscriptions columns
Now it shows "from" instead of "to" column when selecting sent folder in subscriptions or chans. Fixes #53
1 parent 676ea55 commit 17b43df

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/bitmessageqt/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -883,14 +883,15 @@ def loadSent(self, tableWidget, account, where="", what=""):
883883
else:
884884
where = "toaddress || fromaddress || subject || message"
885885

886-
887-
tableWidget.setColumnHidden(0, False)
888-
tableWidget.setColumnHidden(1, True)
889886
tableWidget.setSortingEnabled(False)
890887

891888
if tableWidget == self.ui.tableWidgetInboxChans or tableWidget == self.ui.tableWidgetInboxSubscriptions:
889+
tableWidget.setColumnHidden(0, True)
890+
tableWidget.setColumnHidden(1, False)
892891
xAddress = 'toaddress'
893892
else:
893+
tableWidget.setColumnHidden(0, False)
894+
tableWidget.setColumnHidden(1, True)
894895
xAddress = 'fromaddress'
895896

896897
sqlStatement = '''

0 commit comments

Comments
 (0)