mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 07:54:42 +00:00
Receive: creating a request from Address details silently discards an existing draft #1094
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#1094
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?
Creating a payment request from Address details silently replaces an existing unsaved Receive draft. The amount, message and private note are discarded without confirmation.
To reproduce:
The amount is now zero, the message is empty, and the private note has been replaced by the selected address’s label. No request was saved. Following the same navigation and returning without clicking Create payment request preserves all three fields.
Before replacing a populated draft, the app should ask whether to discard it. Cancelling that action should preserve the entire existing draft.
The clearing happens in QML’s wallet model:
setCurrentPaymentRequestAddress()clears the current request before assigning the selected address and its label. The handoff needs to check for an existing draft before making those changes.This differs from #1030, which concerned selecting the already-active wallet, and #909, which covered editing and discarding a prefilled draft. PR #1062’s used-address guard does not cover this unused-address case.
Reproduced on merged
qt6ateed1f426fcb6, macOS / Qt 6.9, using the full app with an isolated offscreen regtest profile.