mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 07:54:42 +00:00
Receive: Undo can restore another payment request’s amount #1083
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#1083
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?
Opening a different saved payment request can retain the previous request’s amount-edit history. Pressing Undo in the new request restores an amount from the old request, and Update payment request saves it under the new request’s address.
Steps to reproduce:
0.00421 BTC; leave request B’s amount blank.0.00421000.Request B now asks for 421,000 sats. Its copied payment URI and decoded QR both contain that amount at B’s address. Request A remains at zero.
Undo history should belong to the request being edited. Opening another request should clear the previous request’s history while preserving normal Undo within one editing session.
Activity reuses the request modal and its text field. PaymentRequestField.qml resets the visible value, but assigning an already-blank value leaves the previous Undo entry available.
Reproduced in two isolated runs on
qt6at6e54a48ab571, macOS / Qt 6.9, using synthetic input. The restored amount is visible, and the saved request changes only after clicking Update.