d7f3b1af21daa93165b3726fee059a55b7727280 Fix gui segfault caused by bitcoin/bitcoin#22216 (Russell Yanofsky)

Pull request description:

  Reported by Hennadii Stepanov https://github.com/bitcoin/bitcoin/pull/22216#issuecomment-859790682

  Fixes bitcoin/bitcoin#22227

ACKs for top commit:
  hebasto:
    ACK d7f3b1af21daa93165b3726fee059a55b7727280, tested on Linux Mint 20.1 (Qt 5.12.8).
  jarolrod:
    ACK d7f3b1af21daa93165b3726fee059a55b7727280

Tree-SHA512: d672bfa9f1bcd500a879ec7ed27096086ae93b73ad5da8090f29cc5b6d985c46a76583cc384304d67210f87b6b839c2391f0fcc24fd3588c4a014e540283fdfe
This commit is contained in:
Hennadii Stepanov 2021-06-12 00:49:44 +03:00 committed by Konstantin Akimov
parent 1087849955
commit 9dff334f47
No known key found for this signature in database
GPG Key ID: 2176C4A5D01EA524

View File

@ -581,6 +581,7 @@ int GuiMain(int argc, char* argv[])
/// 2. Parse command-line options. We do this after qt in order to show an error if there are problems parsing these /// 2. Parse command-line options. We do this after qt in order to show an error if there are problems parsing these
// Command-line options take precedence: // Command-line options take precedence:
node_context.args = &gArgs;
SetupServerArgs(gArgs); SetupServerArgs(gArgs);
SetupUIArgs(gArgs); SetupUIArgs(gArgs);
std::string error; std::string error;