diff options
author | Marko Bencun <marko.bencun@monetas.net> | 2017-02-22 18:10:00 +0900 |
---|---|---|
committer | Marko Bencun <marko.bencun@monetas.net> | 2017-06-14 00:04:13 +0200 |
commit | 1d1ea9f0962a331c21a3029a0302e5906a396f56 (patch) | |
tree | 0d4f9a7b2ff1d68ad35fa42cf05f05fff0ae6b51 /src/qt/intro.cpp | |
parent | a4ca0b042365061020627a8c045cddacea3312ec (diff) |
Turn TryCreateDirectory() into TryCreateDirectories()
Use case: TryCreateDirectory(GetDataDir() / "blocks" / "index") would
fail if the blocks directory was not explicitly created before.
The line that did so was in a weird location and could be removed as a
result.
Diffstat (limited to 'src/qt/intro.cpp')
-rw-r--r-- | src/qt/intro.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/intro.cpp b/src/qt/intro.cpp index 2460a59109..1e0d472b6a 100644 --- a/src/qt/intro.cpp +++ b/src/qt/intro.cpp @@ -214,7 +214,7 @@ bool Intro::pickDataDirectory() } dataDir = intro.getDataDirectory(); try { - TryCreateDirectory(GUIUtil::qstringToBoostPath(dataDir)); + TryCreateDirectories(GUIUtil::qstringToBoostPath(dataDir)); break; } catch (const fs::filesystem_error&) { QMessageBox::critical(0, tr(PACKAGE_NAME), |