mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 08:03:39 +00:00
Validate wallet display names to avoid duplicate or misleading wallet labels #711
Labels
No labels
Android
Bug
Build system
Design suggestion
Doc
Needs design review
Needs rebase
Stage
UX
Up for grabs
Upstream
Wallet
duplicate
enhancement
good first issue
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin-core/gui-qml#711
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Wallet display-name editing currently allows duplicate names and names that conflict with other wallet names/display names.
WalletQmlController::setWalletDisplayName()only trims the requested alias and stores or removes it inQSettings. It does not check whether the display name duplicates another loaded/listed wallet name or another stored display name.Because wallet selector rows use the display-name role from
WalletListModel, two distinct wallets can appear with the same visible label. This can make wallet selection and wallet settings ambiguous, especially after renaming one wallet to match another wallet's name or alias.Expected behavior
The GUI should prevent or clearly reject wallet display names that would make wallets indistinguishable in user-facing wallet lists.
Possible approaches:
Notes
Raised as a follow-up from review of #551: https://github.com/bitcoin-core/gui-qml/pull/551#pullrequestreview-4310727801
Relevant code:
qml/walletqmlcontroller.cpp:setWalletDisplayName()qml/models/walletlistmodel.cpp: wallet selector display-name roleRelease Target
Preview
Should be added into create wallet name validation
I'll take this.