diff options
| author | Russell Yanofsky <[email protected]> | 2017-04-17 15:44:10 -0400 |
|---|---|---|
| committer | John Newbery <[email protected]> | 2018-04-04 16:52:40 -0400 |
| commit | d7c2c9594897c39df6739b92610dfb5a7a1cb3ec (patch) | |
| tree | 0b8355cffe4a206c43051ada4f2b796b2a6ccf2c /src/qt/intro.cpp | |
| parent | Remove direct bitcoin calls from qt/clientmodel.cpp (diff) | |
| download | discoin-d7c2c9594897c39df6739b92610dfb5a7a1cb3ec.tar.xz discoin-d7c2c9594897c39df6739b92610dfb5a7a1cb3ec.zip | |
Remove direct bitcoin calls from qt/intro.cpp
Diffstat (limited to 'src/qt/intro.cpp')
| -rw-r--r-- | src/qt/intro.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/qt/intro.cpp b/src/qt/intro.cpp index e69f19623..4eb748201 100644 --- a/src/qt/intro.cpp +++ b/src/qt/intro.cpp @@ -12,6 +12,7 @@ #include <qt/guiutil.h> +#include <interface/node.h> #include <util.h> #include <QFileDialog> @@ -186,7 +187,7 @@ QString Intro::getDefaultDataDirectory() return GUIUtil::boostPathToQString(GetDefaultDataDir()); } -bool Intro::pickDataDirectory() +bool Intro::pickDataDirectory(interface::Node& node) { QSettings settings; /* If data directory provided on command line, no need to look at settings @@ -233,8 +234,9 @@ bool Intro::pickDataDirectory() * override -datadir in the bitcoin.conf file in the default data directory * (to be consistent with bitcoind behavior) */ - if(dataDir != getDefaultDataDirectory()) - gArgs.SoftSetArg("-datadir", GUIUtil::qstringToBoostPath(dataDir).string()); // use OS locale for path setting + if(dataDir != getDefaultDataDirectory()) { + node.softSetArg("-datadir", GUIUtil::qstringToBoostPath(dataDir).string()); // use OS locale for path setting + } return true; } |