Add revisions at the end and not the beginning. Revisions are now shown in the correct order.
This commit is contained in:
parent
f14f63daf2
commit
44ca257bae
1 changed files with 4 additions and 2 deletions
|
|
@ -181,7 +181,7 @@ class MainWindow(QtMainWindow):
|
||||||
return
|
return
|
||||||
|
|
||||||
# we set the flags to Qt.ItemIsEnabled so that the items
|
# we set the flags to Qt.ItemIsEnabled so that the items
|
||||||
# are not modifiable
|
# are not modifiable (they are modifiable by default)
|
||||||
item_revision = QTableWidgetItem(revision.revision)
|
item_revision = QTableWidgetItem(revision.revision)
|
||||||
item_revision.setFlags(Qt.ItemIsEnabled)
|
item_revision.setFlags(Qt.ItemIsEnabled)
|
||||||
|
|
||||||
|
|
@ -200,3 +200,5 @@ class MainWindow(QtMainWindow):
|
||||||
self.ui.historyTable.setItem(row, 1, item_time)
|
self.ui.historyTable.setItem(row, 1, item_time)
|
||||||
self.ui.historyTable.setItem(row, 2, item_author)
|
self.ui.historyTable.setItem(row, 2, item_author)
|
||||||
self.ui.historyTable.setItem(row, 3, item_summary)
|
self.ui.historyTable.setItem(row, 3, item_summary)
|
||||||
|
|
||||||
|
self.ui.historyTable.setCurrentCell(row, 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue