codinguser / gnucash-android

Gnucash for Android mobile companion application.
Apache License 2.0
1.22k stars 538 forks source link

Bug - All transactions deleted if export does not complete successfully #908

Open axiopisty opened 2 years ago

axiopisty commented 2 years ago

Steps to reproduce the behaviour

  1. Create a (set of) transaction(s).
  2. In the hamburger menu select Export... with the export to field left empty so it states: "Send to...", the format field set to: QIF, and select the checkbox "Delete transactions after export"
  3. Select the Export button. This will open an option to export the transactions. Do not complete this operation. Cancel it (I did this unknowingly simply by swiping down on my screen). Once this is done, the transactions have not been exported anywhere but the transactions have indeed been deleted. I lost almost 1 month of transactions because of this bug.

Expected behaviour

If the "Delete transactions after export" checkbox is checked, all transactions should be deleted only if they were "successfully" exported. Don't just delete them once the export button has been clicked. The application needs to know if the transactions were deleted successfully or not. If not, do not delete them!

Actual behaviour

If the "Delete transactions after export" checkbox is checked, all the transactions are deleted even if they were NOT "successfully" exported.

Software specifications