ui: disable 3rd-party tx-urls when wallet disabled #17694

pull brakmic wants to merge 1 commits into bitcoin:master from brakmic:options-display-dialog changing 1 files +3 −1
  1. brakmic commented at 6:17 PM on December 7, 2019: contributor

    This PR closes #17683 by removing 3rd-party Url-Label and -TextBox from Display Options in wallet-disabled mode.

  2. fanquake added the label GUI on Dec 7, 2019
  3. jonasschnelli commented at 5:58 AM on December 9, 2019: contributor

    Yes. Probably a good idea. It can always come back in node mode in case someone once adds an option to inspect the mempool or blocks, etc.

    Concept ACK

  4. promag commented at 8:43 AM on December 9, 2019: member

    Could also disable with -disablewallet?

  5. brakmic commented at 9:02 AM on December 9, 2019: contributor

    Could also disable with -disablewallet?

    Many thanks for the hint. It now also disables the textbox when -disablewallet.

  6. ui: disable 3rd-party tx-urls when wallet disabled 48a5c92f9e
  7. in src/qt/optionsdialog.cpp:113 in b77d9da410 outdated
     109 | @@ -108,7 +110,12 @@ OptionsDialog::OptionsDialog(QWidget *parent, bool enableWallet) :
     110 |              ui->lang->addItem(locale.nativeLanguageName() + QString(" (") + langStr + QString(")"), QVariant(langStr));
     111 |          }
     112 |      }
     113 | +#ifdef ENABLE_WALLET
    


    laanwj commented at 9:47 AM on December 9, 2019:

    Is this change even necessary? I think the above (!enableWallet) change covers all cases where there's no wallet? if so, it's good to avoid introducing conditional compilation if possible.


    brakmic commented at 9:59 AM on December 9, 2019:

    I have tested it and yes, it doesn't need this #ifdef. Many thanks!

  8. laanwj commented at 10:01 AM on December 9, 2019: member

    Code review ACK 48a5c92f9ef6634375a3f52812cf3d511c37699d

  9. fanquake approved
  10. fanquake commented at 2:53 PM on December 9, 2019: member

    ACK 48a5c92f9ef6634375a3f52812cf3d511c37699d - tested with and without wallet (compiled out and -disablewallet).

  11. fanquake referenced this in commit 05c23488c2 on Dec 9, 2019
  12. fanquake merged this on Dec 9, 2019
  13. fanquake closed this on Dec 9, 2019

  14. deadalnix referenced this in commit 542557427b on Nov 7, 2020
  15. MarcoFalke locked this on Dec 16, 2021

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