diff options
author | MeshCollider <dobsonsa68@gmail.com> | 2017-10-27 15:15:40 +1300 |
---|---|---|
committer | MeshCollider <dobsonsa68@gmail.com> | 2017-11-18 00:50:59 +1300 |
commit | 9587a9c12b5d54263787a23c75f570db368318c1 (patch) | |
tree | 8fe3ceaca77bd217c1b7b5adb982502467f5e5c8 /src/wallet/walletutil.cpp | |
parent | d9878890e4539d7113fae880f612e68640e69462 (diff) |
Default walletdir is wallets/ if it exists
Diffstat (limited to 'src/wallet/walletutil.cpp')
-rw-r--r-- | src/wallet/walletutil.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wallet/walletutil.cpp b/src/wallet/walletutil.cpp index 85ac428b25..fbb5215a51 100644 --- a/src/wallet/walletutil.cpp +++ b/src/wallet/walletutil.cpp @@ -17,6 +17,10 @@ fs::path GetWalletDir() } } else { path = GetDataDir(); + // If a wallets directory exists, use that, otherwise default to GetDataDir + if (fs::is_directory(path / "wallets")) { + path /= "wallets"; + } } return path; |