diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2012-04-22 14:35:22 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2012-04-22 17:38:47 +0200 |
commit | f4203de3021ca67f065d163b332e9814aee842d8 (patch) | |
tree | da3a6e5adc51ba5b1607b48ea22dc10b87ceef75 /src/qt/bitcoin.cpp | |
parent | 457661f6400030f5979564462e8c625840cc5e58 (diff) |
Make GetDataDir return absolute paths
Diffstat (limited to 'src/qt/bitcoin.cpp')
-rw-r--r-- | src/qt/bitcoin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp index c7830871b5..7c262e14cd 100644 --- a/src/qt/bitcoin.cpp +++ b/src/qt/bitcoin.cpp @@ -168,11 +168,12 @@ int main(int argc, char *argv[]) ParseParameters(argc, argv); // ... then bitcoin.conf: - if (!ReadConfigFile(mapArgs, mapMultiArgs)) + if (!boost::filesystem::is_directory(GetDataDir(false))) { fprintf(stderr, "Error: Specified directory does not exist\n"); return 1; } + ReadConfigFile(mapArgs, mapMultiArgs); // Application identification (must be set before OptionsModel is initialized, // as it is used to locate QSettings) |