Skip to content

Conversation

@pablomartin4btc
Copy link
Contributor

@pablomartin4btc pablomartin4btc commented Aug 31, 2023

This fixes #361.

After applying the fix, no QML source code errors should be displayed on the terminal:

image

@pablomartin4btc pablomartin4btc marked this pull request as ready for review August 31, 2023 20:09
@hebasto hebasto changed the title qml: Fix QSettings initialization failure on startup when parsing invalid arguments Fix QSettings initialization failure on startup when parsing invalid arguments Aug 31, 2023
@hebasto
Copy link
Member

hebasto commented Aug 31, 2023

@pablomartin4btc pablomartin4btc force-pushed the fix-QSetting-init branch 2 times, most recently from a522ca5 to fb7b225 Compare August 31, 2023 23:28
Moving bitcoin.cpp app setters before parsing
command-line options; otherwise if invalid
parameters are passed, QSetting initialization
would fail and the corresponding error will be
displayed on terminal.
@pablomartin4btc
Copy link
Contributor Author

Rebased.

Copy link
Contributor

@MarnixCroes MarnixCroes left a comment

Choose a reason for hiding this comment

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

tested e1b0798 lgtm

Copy link
Contributor

@D33r-Gee D33r-Gee left a comment

Choose a reason for hiding this comment

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

tACK e1b0798 on WSL Ubuntu 22.04 on signet no issues detected

Copy link
Collaborator

@johnny9 johnny9 left a comment

Choose a reason for hiding this comment

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

ACK e1b0798

Before changes:

qrc:/qml/controls/Theme.qml:13:5: QML Settings: Failed to initialize QSettings instance. Status code is: 1
qrc:/qml/controls/Theme.qml:13:5: QML Settings: The following application identifiers have not been set: QVector("organizationName", "organizationDomain")

After:
No qml errors seen

@pablomartin4btc
Copy link
Contributor Author

Thanks @MarnixCroes, @D33r-Gee and @johnny9 for testing the bugfix!

@hebasto hebasto merged commit 58f8d44 into bitcoin-core:main Jan 14, 2024
johnny9 pushed a commit to johnny9/bitcoin-core-app that referenced this pull request Jul 4, 2025
…on startup when parsing invalid arguments

c52b7e0 qml: Fix possible QSettings init failure on startup (pablomartin4btc)

Pull request description:

  This fixes #361.

  After applying the fix, no QML source code errors should be displayed on the terminal:

  ![image](https://github.com/bitcoin-core/gui-qml/assets/110166421/c6acc58d-a08d-48cd-836d-591c074e6001)

ACKs for top commit:
  D33r-Gee:
    tACK bitcoin-core/gui-qml@c52b7e0 on WSL Ubuntu 22.04 on `signet` no issues detected
  johnny9:
    ACK c52b7e0

Tree-SHA512: ef7bc95782127df7f2f541eedab69c71fd6c1ee2e9d516a3003923b4e9869543c05f26297db5b945f2e40852e8b6cec4d3edc653805cfcd85254b922beb4703b
tx-signer450 added a commit to tx-signer450/gui-qml that referenced this pull request Oct 20, 2025
…on startup when parsing invalid arguments

c52b7e01dea764ce8de1e6218eadee86ae0bbc71 qml: Fix possible QSettings init failure on startup (pablomartin4btc)

Pull request description:

  This fixes #361.

  After applying the fix, no QML source code errors should be displayed on the terminal:

  ![image](https://github.com/bitcoin-core/gui-qml/assets/110166421/c6acc58d-a08d-48cd-836d-591c074e6001)

ACKs for top commit:
  D33r-Gee:
    tACK bitcoin-core/gui-qml@c52b7e0 on WSL Ubuntu 22.04 on `signet` no issues detected
  johnny9:
    ACK c52b7e01dea764ce8de1e6218eadee86ae0bbc71

Tree-SHA512: ef7bc95782127df7f2f541eedab69c71fd6c1ee2e9d516a3003923b4e9869543c05f26297db5b945f2e40852e8b6cec4d3edc653805cfcd85254b922beb4703b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

QML source code error displayed on terminal if run app with invalid args

5 participants