mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 07:54:42 +00:00
Reset transaction review when it reopens #993
Labels
No labels
Android
Bug
Build system
Design suggestion
Doc
Needs design review
Needs rebase
Stage
UX
Up for grabs
Upstream
Wallet
duplicate
enhancement
good first issue
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin-core/gui-qml#993
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent: #582 — Send Bitcoin. Related: #973.
Problem
Reopening transaction review during its closing animation can retain the previous transaction's Complete page. Its buttons can still refer to the previous transaction or draft.
Suggested fix
Start each opening with the current transaction's review state. Invalidate actions from the previous opening when closing begins. Ensure reopening during an unfinished close resets the displayed page.
Validation
Complete a send, close review, then reopen before the closing animation finishes. Confirm the current review appears and old completion actions cannot clear drafts or navigate to the previous transaction.
Found another way to hit this on
d567e3e, tested in the native macOS GUI with Qt 6.9.0 on regtest. This doesn’t need an animation race or quick clicking.Using two valid PSBTs spending different coins from the same wallet:
I checked the transaction IDs and mempool: only the first transaction was sent. The second PSBT imports and displays correctly once the old completion screen has been dismissed, so the file itself is fine.
The review stack only resets in
onClosed. Opening another transaction while the popup is already open leaves the previous Complete page on top. We should reset the review for each new transaction, including this case, so the old completion actions can’t affect the new import.