Skip to content

bugfix: Close transaction detail windows when switching wallets#941

Open
pablomartin4btc wants to merge 2 commits into
bitcoin-core:masterfrom
pablomartin4btc:gui/close-tx-windows-on-wallet-switch
Open

bugfix: Close transaction detail windows when switching wallets#941
pablomartin4btc wants to merge 2 commits into
bitcoin-core:masterfrom
pablomartin4btc:gui/close-tx-windows-on-wallet-switch

Conversation

@pablomartin4btc

@pablomartin4btc pablomartin4btc commented Jun 18, 2026

Copy link
Copy Markdown
Contributor
When the user switches to a different wallet, any open transaction detail windows (TransactionDescDialog) from the previous wallet's view remain visible. The dialogs are backed by the outgoing wallet's data but stay on screen, which is confusing. before
Fix by adding WalletView::closeTransactionDialogs() (delegating to the existing TransactionView::closeOpenedDialogs()) and calling it from WalletFrame::setCurrentWallet() when hiding the outgoing view. after

A Qt test was added to verify that open transaction detail dialogs are closed when closeOpenedDialogs() is called.

Possible follow-up: remembering which transaction detail windows were open per wallet and restore them when switching back to that wallet.

Add WalletView::closeTransactionDialogs() which delegates to
TransactionView::closeOpenedDialogs(). Call it from
WalletFrame::setCurrentWallet() when hiding the outgoing wallet view,
so any open TransactionDescDialog windows from the previous wallet are
closed before the view is hidden.
…witch

Add TestCloseTransactionDialogs() which selects a transaction, opens
its detail dialog via showDetails(), then calls closeOpenedDialogs()
and verifies the dialog is gone. Exercises the path triggered by
WalletView::closeTransactionDialogs() during a wallet switch.
@DrahtBot

DrahtBot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews

See the guideline for information on the review process.
A summary of reviews will appear here.

@pablomartin4btc

Copy link
Copy Markdown
Contributor Author

-Updates:

  • Added before/ after animated gifs into the PR description.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants