aboutsummaryrefslogtreecommitdiff
path: root/src/qt/intro.cpp
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2020-04-20 14:42:52 +0000
committerLuke Dashjr <luke-jr+git@utopios.org>2020-11-19 03:15:53 +0000
commit62932cc686dc46ce14c026993deea8e561654177 (patch)
treec96402f607c6113a978164fa6fb57c09051d2671 /src/qt/intro.cpp
parenta47e5964861dfb98d61719c9852e12fd6da84c31 (diff)
downloadbitcoin-62932cc686dc46ce14c026993deea8e561654177.tar.xz
GUI/Intro: Return actual prune setting from showIfNeeded
Diffstat (limited to 'src/qt/intro.cpp')
-rw-r--r--src/qt/intro.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qt/intro.cpp b/src/qt/intro.cpp
index 235722d091..437c941f70 100644
--- a/src/qt/intro.cpp
+++ b/src/qt/intro.cpp
@@ -182,7 +182,7 @@ void Intro::setDataDirectory(const QString &dataDir)
}
}
-bool Intro::showIfNeeded(bool& did_show_intro, bool& prune)
+bool Intro::showIfNeeded(bool& did_show_intro, int64_t& prune_MiB)
{
did_show_intro = false;
@@ -233,7 +233,7 @@ bool Intro::showIfNeeded(bool& did_show_intro, bool& prune)
}
// Additional preferences:
- prune = intro.ui->prune->isChecked();
+ prune_MiB = intro.ui->prune->isChecked() ? PruneGBtoMiB(intro.m_prune_target_gb) : int64_t(0);
settings.setValue("strDataDir", dataDir);
settings.setValue("fReset", false);