diff options
| author | Cozz Lovan <[email protected]> | 2014-07-13 06:27:29 +0200 |
|---|---|---|
| committer | Cozz Lovan <[email protected]> | 2014-07-13 07:43:01 +0200 |
| commit | 76fd7b8c2677dc145a67e86153d629b43d2a92e5 (patch) | |
| tree | f266d31f739c8e819e9c45b1bd4dd1693951a1fb /src/qt/bitcoingui.cpp | |
| parent | Merge pull request #4511 (diff) | |
| download | discoin-76fd7b8c2677dc145a67e86153d629b43d2a92e5.tar.xz discoin-76fd7b8c2677dc145a67e86153d629b43d2a92e5.zip | |
[Qt] Fix segfault when launched with -disablewallet
Diffstat (limited to 'src/qt/bitcoingui.cpp')
| -rw-r--r-- | src/qt/bitcoingui.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp index 6b3aa2a2d..3ef04d96a 100644 --- a/src/qt/bitcoingui.cpp +++ b/src/qt/bitcoingui.cpp @@ -159,10 +159,13 @@ BitcoinGUI::BitcoinGUI(bool fIsTestnet, QWidget *parent) : labelEncryptionIcon = new QLabel(); labelConnectionsIcon = new QLabel(); labelBlocksIcon = new QLabel(); - frameBlocksLayout->addStretch(); - frameBlocksLayout->addWidget(unitDisplayControl); - frameBlocksLayout->addStretch(); - frameBlocksLayout->addWidget(labelEncryptionIcon); + if(enableWallet) + { + frameBlocksLayout->addStretch(); + frameBlocksLayout->addWidget(unitDisplayControl); + frameBlocksLayout->addStretch(); + frameBlocksLayout->addWidget(labelEncryptionIcon); + } frameBlocksLayout->addStretch(); frameBlocksLayout->addWidget(labelConnectionsIcon); frameBlocksLayout->addStretch(); |