aboutsummaryrefslogtreecommitdiff
path: root/src/qt/bitcoin.cpp
diff options
context:
space:
mode:
authorSjors Provoost <sjors@sprovoost.nl>2019-08-24 22:31:14 +0200
committerSjors Provoost <sjors@sprovoost.nl>2019-08-24 22:36:11 +0200
commit1957103786f97135f35ababc97efa1b481865eb0 (patch)
tree35064141c2a91d0f4c2b63b6282854578ae8357c /src/qt/bitcoin.cpp
parent1bccf6a52d7fc08d8f605cfb2edc3277ec299c72 (diff)
downloadbitcoin-1957103786f97135f35ababc97efa1b481865eb0.tar.xz
[gui] add explicit prune setter
This makes it possible to enable pruning after the OptionsModel has been initialized and reset.
Diffstat (limited to 'src/qt/bitcoin.cpp')
-rw-r--r--src/qt/bitcoin.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp
index adc19df935..f2e62040ae 100644
--- a/src/qt/bitcoin.cpp
+++ b/src/qt/bitcoin.cpp
@@ -282,6 +282,10 @@ void BitcoinApplication::parameterSetup()
m_node.initParameterInteraction();
}
+void BitcoinApplication::SetPrune(bool prune, bool force) {
+ optionsModel->SetPrune(prune, force);
+}
+
void BitcoinApplication::requestInitialize()
{
qDebug() << __func__ << ": Requesting initialize";