Fix QSettings initialization failure on startup when parsing invalid arguments#360
Merged
Merged
Conversation
6b86e35 to
ab02746
Compare
Member
a522ca5 to
fb7b225
Compare
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.
fb7b225 to
e1b0798
Compare
Contributor
Author
|
Rebased. |
johnny9
approved these changes
Dec 13, 2023
Collaborator
johnny9
left a comment
There was a problem hiding this comment.
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
Contributor
Author
|
Thanks @MarnixCroes, @D33r-Gee and @johnny9 for testing the bugfix! |
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:  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:  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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes #361.
After applying the fix, no QML source code errors should be displayed on the terminal: