revert: Revert "merge bitcoin-core/gui#835: Fix crash when closing wallet"#6881
revert: Revert "merge bitcoin-core/gui#835: Fix crash when closing wallet"#6881PastaPastaPasta merged 1 commit intodashpay:developfrom
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 |
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: