qml: Handle payment URIs passed on the command line

bitcoin-core/gui-qml: PR #934

1 minor finding · 1 suggestion

Earlier concerns neither republished nor resolved: 1 minor finding. See the Run archive for their assessments.

Findings

Link

[minor] · Cancelling wallet selection or creation hides the pending request

Cancelling Open wallet or Create wallet without loading a wallet leaves the command-line request queued but removes its notice and Discard action until a wallet later loads.

Location: qml/pages/MainWindow.qml:106 (head).

Details and suggested fix

Both actions close the no-wallet notice without advancing the queue, leaving paymentUriAnnounced true. Cancelling the creation wizard schedules delivery again, but announcePendingPaymentUri() immediately returns because that flag is still set. Closing the wallet picker does not schedule a retry at all. The user therefore cannot see or discard the waiting request; a later wallet load still offers it for review, without applying it automatically. Re-arm the announcement when returning from either flow without a wallet, and retry delivery after the picker closes as well as after the wizard closes.


Optional improvements

Link

[suggestion] · Payment request review omits the target wallet

Re-offering an interrupted request can target a different wallet without naming it in the dialog, although the header badge identifies the selection and Apply and transaction review remain required.

Location: qml/components/PaymentRequestReviewPopup.qml:98 (head).

Details and suggested fix

When the selected wallet unloads, the controller selects another open wallet; loading another wallet also changes selection. The old view interrupts its request, and finishPendingPaymentUri() retains it for delivery to the new activeView. The review shows the URI details and a “From” row containing “command line”, but no wallet identity. Add a “Wallet” row using the owning SendCreate's wallet.displayName, and label the delivery-source row “Source” or “Received via”. This lets the user check which wallet's Send form will be populated at the same checkpoint, rather than relying on the header outside the modal. Redelivery can remain unchanged so unloading the original wallet does not prevent recovery.


Coverage details

Earlier concerns

Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.