Skip to content

Conversation

brakmic
Copy link
Contributor

@brakmic brakmic commented Jan 15, 2020

This PR takes care of removing (hiding) the HD wallet and encryption icons when no wallet is loaded.

Fixes #17927

@DrahtBot DrahtBot added the GUI label Jan 15, 2020
Copy link
Contributor

@promag promag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concept ACK.

@brakmic brakmic changed the title gui: hide HD icon when no wallet loaded gui: hide HD & encryption icon when no wallet loaded Jan 15, 2020
@brakmic brakmic changed the title gui: hide HD & encryption icon when no wallet loaded gui: hide HD & encryption icons when no wallet loaded Jan 15, 2020
Copy link
Member

@fanquake fanquake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 486f510 - tested that this fixes #17927. Thanks for following up so quick.

@Sjors
Copy link
Member

Sjors commented Jan 16, 2020

ACK 486f510

@cvengler
Copy link
Contributor

ACK 486f510

@theStack
Copy link
Contributor

ACK 486f510
Tested with Ubuntu 16.04 + Qt 5.5.1

fanquake added a commit that referenced this pull request Jan 16, 2020
486f510 gui: hide HD & encryption icons when no wallet loaded (Harris)

Pull request description:

  This PR takes care of removing (hiding) the HD wallet and encryption icons when no wallet is loaded.

  Fixes #17927

ACKs for top commit:
  Sjors:
    ACK 486f510
  theStack:
    ACK 486f510
  fanquake:
    ACK 486f510 - tested that this fixes #17927. Thanks for following up so quick.
  emilengler:
    ACK 486f510

Tree-SHA512: 6e3e5305a9eefe1692614097c05393aa0dffd561c89cefb40d501e70a8102eafcadfbc1c86a35c0b256b0f94f41598545d7a043954d6b9669c169d31d95aaf24
@fanquake fanquake merged commit 486f510 into bitcoin:master Jan 16, 2020
MarkLTZ added a commit to litecoinz-core/litecoinz that referenced this pull request Jan 21, 2020
@@ -659,6 +659,8 @@ void BitcoinGUI::removeWallet(WalletModel* walletModel)
rpcConsole->removeWallet(walletModel);
walletFrame->removeWallet(walletModel);
updateWindowTitle();
labelWalletHDStatusIcon->hide();
labelWalletEncryptionIcon->hide();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems obviously broken... See PR #18007

jasonbcox pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Sep 23, 2020
Summary:
The HD and encrypt status bar icons were not hidden after closing all wallets in bitcoin-qt.

This is a Backport of Bitcoin Core [[bitcoin/bitcoin#17935 | PR17935]] and [[bitcoin/bitcoin#18007 | PR18007]]
The second PR is a fix for a bug introduced by the first.

Test Plan:
Reproduce the issue before applying the commits: close all wallets in bitcoin-qt and check that status icons remain visible.
Build, install, create 2 encrypted wallets, check that the icons now disappear when all wallets are closed, but remains visible after closing a wallet if a second wallet is still open.

Reviewers: O1 Bitcoin ABC, #bitcoin_abc, Fabien

Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, Fabien

Subscribers: Fabien

Differential Revision: https://reviews.bitcoinabc.org/D7540
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Feb 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gui: HD icon is displayed when no wallet is loaded
9 participants