gui: hide HD & encryption icons when no wallet loaded #17935

pull brakmic wants to merge 1 commits into bitcoin:master from brakmic:hdwallet-icon-handling changing 1 files +3 −1
  1. brakmic commented at 8:26 PM on January 15, 2020: contributor

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

    Fixes #17927

  2. DrahtBot added the label GUI on Jan 15, 2020
  3. in src/qt/bitcoingui.cpp:405 in 032a56d131 outdated
     401 | @@ -402,6 +402,7 @@ void BitcoinGUI::createActions()
     402 |          });
     403 |          connect(m_close_wallet_action, &QAction::triggered, [this] {
     404 |              m_wallet_controller->closeWallet(walletFrame->currentWalletModel(), this);
     405 | +            labelWalletHDStatusIcon->hide();
    


    promag commented at 8:47 PM on January 15, 2020:

    This in the wrong place, should be in BitcoinGUI::removeWallet - then it will also work if you open the console and call unloadwallet.


    brakmic commented at 8:48 PM on January 15, 2020:

    Ooops, many thanks! Will update.

  4. promag commented at 8:47 PM on January 15, 2020: member

    Concept ACK.

  5. brakmic renamed this:
    gui: hide HD icon when no wallet loaded
    gui: hide HD & encryption icon when no wallet loaded
    on Jan 15, 2020
  6. brakmic renamed this:
    gui: hide HD & encryption icon when no wallet loaded
    gui: hide HD & encryption icons when no wallet loaded
    on Jan 15, 2020
  7. gui: hide HD & encryption icons when no wallet loaded 486f51099f
  8. in src/qt/bitcoingui.cpp:1214 in 8279b0265a outdated
    1212 | @@ -1211,6 +1213,7 @@ void BitcoinGUI::setHDStatus(bool privkeyDisabled, int hdEnabled)
    1213 |      labelWalletHDStatusIcon->setToolTip(privkeyDisabled ? tr("Private key <b>disabled</b>") : hdEnabled ? tr("HD key generation is <b>enabled</b>") : tr("HD key generation is <b>disabled</b>"));
    1214 |  
    1215 |      // eventually disable the QLabel to set its opacity to 50%
    1216 | +    labelWalletHDStatusIcon->show();
    


    yahiheb commented at 10:10 PM on January 15, 2020:

    Just a nit: shouldn't this line be above the comment?


    brakmic commented at 10:12 PM on January 15, 2020:

    Indeed. Many thanks!

  9. fanquake approved
  10. fanquake commented at 12:36 AM on January 16, 2020: member

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

  11. Sjors commented at 1:34 PM on January 16, 2020: member

    ACK 486f51099ff4e68b67c5bb7ea428c56f3ea1bd55

  12. emilengler commented at 1:42 PM on January 16, 2020: contributor

    ACK 486f510

  13. theStack commented at 1:43 PM on January 16, 2020: member
  14. fanquake referenced this in commit a9c789ed96 on Jan 16, 2020
  15. fanquake merged this on Jan 16, 2020
  16. fanquake closed this on Jan 16, 2020

  17. MarkLTZ referenced this in commit 2ae3e95ab9 on Jan 21, 2020
  18. in src/qt/bitcoingui.cpp:663 in 486f51099f
     658 | @@ -659,6 +659,8 @@ void BitcoinGUI::removeWallet(WalletModel* walletModel)
     659 |      rpcConsole->removeWallet(walletModel);
     660 |      walletFrame->removeWallet(walletModel);
     661 |      updateWindowTitle();
     662 | +    labelWalletHDStatusIcon->hide();
     663 | +    labelWalletEncryptionIcon->hide();
    


    luke-jr commented at 10:56 PM on January 26, 2020:

    This seems obviously broken... See PR #18007

  19. jasonbcox referenced this in commit 65c02eebfa on Sep 23, 2020
  20. DrahtBot locked this on Feb 15, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me