mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-13 07:28:59 +01:00
Create walletdir if datadir doesn't exist and fix tests
This commit is contained in:
@@ -214,7 +214,10 @@ bool Intro::pickDataDirectory()
|
||||
}
|
||||
dataDir = intro.getDataDirectory();
|
||||
try {
|
||||
TryCreateDirectories(GUIUtil::qstringToBoostPath(dataDir));
|
||||
if (TryCreateDirectories(GUIUtil::qstringToBoostPath(dataDir))) {
|
||||
// If a new data directory has been created, make wallets subdirectory too
|
||||
TryCreateDirectories(GUIUtil::qstringToBoostPath(dataDir) / "wallets");
|
||||
}
|
||||
break;
|
||||
} catch (const fs::filesystem_error&) {
|
||||
QMessageBox::critical(0, tr(PACKAGE_NAME),
|
||||
|
||||
Reference in New Issue
Block a user