Review report

bitcoin-core/gui-qml: PR #1052

1 suggestion

Earlier concerns neither republished nor resolved: 2 minor findings · 1 suggestion. See the Run archive for their assessments.

Optional improvements

Link

[suggestion] · Alert action buttons bypass the shared busy guard

AlertPopup relies on each caller to block button actions while busy, leaving its shared busy contract dependent on caller-specific protection.

Location: qml/controls/AlertPopup.qml:90 (head).

Details and suggested fix

DialogPopup documents that nothing closes a busy popup, and AlertPopup.accept() and cancel() return while busy. However, both action-button delegates use only action.enabled and call trigger(), which can explicitly close the popup and emit triggered() while busy. No current production caller with enabled alert actions while busy was found: WalletPassphrasePopup and WalletMigrationPopup already disable their actions. Keep that protection in the shared component instead of requiring each future caller to repeat it. Return from trigger() when busy and bind both delegates' enabled state to alertAction.enabled && !root.busy. This preserves the existing wrappers' behavior while preventing a busy alert from dismissing or resubmitting through its buttons.


Coverage details

Earlier concerns

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