Make sure to save changes to transactions on disk

This commit is contained in:
Johann Bauer 2018-01-24 21:41:35 +01:00
parent 95da5a8bed
commit e184ac888f
1 changed files with 2 additions and 3 deletions

View File

@ -198,6 +198,7 @@ class HistoryList(MyTreeWidget, AcceptFileDragDrop):
return
for tx in to_delete:
self.wallet.remove_transaction(tx)
self.wallet.save_transactions(write=True)
root = self.invisibleRootItem()
child_count = root.childCount()
_offset = 0
@ -211,7 +212,5 @@ class HistoryList(MyTreeWidget, AcceptFileDragDrop):
with open(fn) as f:
tx = self.parent.tx_from_text(f.read())
self.wallet.add_transaction(tx.txid(), tx)
self.wallet.save_transactions()
self.wallet.save_transactions(write=True)
self.on_update()