-
Notifications
You must be signed in to change notification settings - Fork 1.2k
revert: Revert "merge bitcoin-core/gui#835: Fix crash when closing wallet" #6881
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…llet" This reverts commit 20763f1.
✅ No Merge Conflicts DetectedThis PR currently has no conflicts with other open PRs. |
WalkthroughThe change removes the WalletController::removeWallet helper from both the header and implementation. closeWallet now directly calls wallet_model->wallet().remove() before invoking removeAndDeleteWallet(wallet_model). closeAllWallets iterates wallets, calls wallet_model->wallet().remove(), emits walletRemoved(wallet_model), deletes each wallet_model, and then clears m_wallets. All previous usages of removeWallet are replaced with the inlined removal and cleanup logic. Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
💤 Files with no reviewable changes (1)
🧰 Additional context used📓 Path-based instructions (1)src/**/*.{cpp,h,cc,cxx,hpp}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
🔇 Additional comments (2)
Warning Review ran into problems🔥 ProblemsGit: Failed to clone repository. Please run the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
knst
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 826221b
Backport gui-835 is marked as reverted in spreadsheet
kwvg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK 826221b
Issue being fixed or feature implemented
This reverts commit 20763f1 from #6829.
The issue that was meant to be fixed by that backport does not exist in our codebase yet, see bitcoin-core/gui#835 (review). Even worse, backporting it too early created an issue where wallets would not be removed from gui while being removed in background.
What was done?
revert it
How Has This Been Tested?
open multiple wallets, try closing one of them.
develop: no visual changes, feels like "Close wallet" menu is not working but wallet is actually removed which can be confirmed by restarting qt
this PR/previous behaviour: wallet is actually gone from ui asap
Breaking Changes
n/a
Checklist: