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: contributor

    On it.

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

    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: contributor

    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: contributor

    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 cross-referenced this on Sep 7, 2019 from issue gui: Create wallet menu option follow-ups by jonatack
  9. jonatack commented at 1:14 PM on September 7, 2019: contributor

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

  10. 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.

  11. jonatack commented at 5:41 PM on September 7, 2019: contributor

    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.

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

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

  13. jonatack commented at 7:14 PM on September 7, 2019: contributor

    Cool. Removing it from the #16822 checklist.

  14. achow101 cross-referenced this on Sep 8, 2019 from issue Do additional character escaping for wallet names and address labels by achow101
  15. fanquake referenced this in commit 4c329d43a5 on Sep 9, 2019
  16. fanquake referenced this in commit a953429a0e on Sep 16, 2019
  17. fanquake closed this on Sep 16, 2019

  18. sidhujag referenced this in commit 2b7ff1f581 on Sep 16, 2019
  19. bitcoin locked this on Dec 16, 2021
  20. PastaPastaPasta referenced this in commit 6e038a6812 on Apr 7, 2022
  21. 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-05-20 06:54 UTC