Follow ups from #15450 #16820

issue fanquake opened this issue on September 7, 2019
  1. fanquake commented at 6:58 AM on September 7, 2019: member

    There's a few small issues left over from #15450:

    • Focusing on the Encrypt Wallet dialog after clicking Create Wallet.
    m_passphrase_dialog->setWindowModality(Qt::ApplicationModal); 
    m_passphrase_dialog->show();
    

    This is at least one inconsistency where if you create a wallet with a HTML escaped character in the name, i.e Alice & Bob, then the & will not be shown in some menus / dialogs.

  2. fanquake added the label GUI on Sep 7, 2019
  3. fanquake added the label good first issue on Sep 7, 2019
  4. jonatack commented at 8:09 AM on September 7, 2019: member

    On it.

  5. jonatack commented at 8:13 AM on September 7, 2019: member

    Possibly also point 5 of #15450 (comment), e.g. interactive passphrase match validation, or at least in the same dialog. Though this may be more involved/for later.

  6. jonatack commented at 9:06 AM on September 7, 2019: member

    Also found and fixing:

    $ git grep askPasshprase
    src/qt/walletcontroller.cpp:182:void CreateWalletActivity::askPasshprase()
    src/qt/walletcontroller.cpp:250:            askPasshprase();
    src/qt/walletcontroller.h:121:    void askPasshprase();
    
  7. jonatack commented at 9:57 AM on September 7, 2019: member

    Unable to reproduce the auto-focus issue in the Encrypt wallet dialog with Debian. Will test on macOS with and without the m_passphrase_dialog->setWindowModality(Qt::ApplicationModal); fix.

  8. jonatack commented at 1:14 PM on September 7, 2019: member

    Reproduced the auto-focus issue on macOS; the proposed fix resolves it.

  9. achow101 commented at 4:17 PM on September 7, 2019: member

    For the most part, the HTML escaping issue doesn't seem to actually be due to HTML. The places where the wallet name is being rendered don't allow HTML for the name. The only place that seems to be having issues is the Open Wallet menu. The issue there appears to be because QAction strips down the text so things like & get dropped.

    I did find one instance of HTML actually needing to be escaped though.

  10. jonatack commented at 5:41 PM on September 7, 2019: member

    Makes sense. Noticed two things after starting to look at it:

    • HTML escaping src/qt/bitcoingui.cpp::L378 like at src/qt/walletcontroller.cpp::L282 does display the ampersand (but obvs in HTML escaped format) so it's there but being dropped.

    • Looks like this issue predates #15450. Tried an earlier build to confirm.

  11. achow101 commented at 6:53 PM on September 7, 2019: member

    I'm working on a fix for the HTML stuff.

  12. jonatack commented at 7:14 PM on September 7, 2019: member

    Cool. Removing it from the #16822 checklist.

  13. fanquake referenced this in commit 4c329d43a5 on Sep 9, 2019
  14. fanquake referenced this in commit a953429a0e on Sep 16, 2019
  15. fanquake closed this on Sep 16, 2019

  16. sidhujag referenced this in commit 2b7ff1f581 on Sep 16, 2019
  17. MarcoFalke locked this on Dec 16, 2021
  18. PastaPastaPasta referenced this in commit 6e038a6812 on Apr 7, 2022
  19. PastaPastaPasta referenced this in commit 061e8c57da on Apr 11, 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-14 18:14 UTC

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