Fixed date display
This commit is contained in:
parent
b74ebc92dd
commit
6edf8e1603
|
@ -34,7 +34,7 @@ class MainWindow(QMainWindow, Ui_MainWindow):
|
|||
('Filename', 'FT_FILENAME', str, '', Qt.AlignLeft),
|
||||
('ED2K Hash', 'ED2KHASH', str, '', Qt.AlignLeft),
|
||||
('Hashset', None, None, '', Qt.AlignLeft),
|
||||
('Last Changed', 'LASTCHANGED', 'Never', QDateTime, Qt.AlignLeft),
|
||||
('Last Changed', 'LASTCHANGED', QDateTime, 'Never', Qt.AlignLeft),
|
||||
('Filesize', 'FT_FILESIZE', int, 0, Qt.AlignRight),
|
||||
('Transfered', 'FT_ATTRANSFERRED', int, 0, Qt.AlignRight),
|
||||
('Transfered (HI)', 'FT_ATTRANSFERREDHI', int, 0, Qt.AlignRight),
|
||||
|
@ -121,7 +121,7 @@ class MainWindow(QMainWindow, Ui_MainWindow):
|
|||
row_count = root.rowCount()
|
||||
transfered = 0
|
||||
for i in range(row_count):
|
||||
row = self.treeModel.item(i, column=4)
|
||||
row = self.treeModel.item(i, column=5)
|
||||
transfered += int(row.text().replace(',', ''))
|
||||
self.tableWidget.setRowCount(1)
|
||||
self.tableWidget.setColumnCount(2)
|
||||
|
|
Loading…
Reference in New Issue