From 9587a9c12b5d54263787a23c75f570db368318c1 Mon Sep 17 00:00:00 2001 From: MeshCollider Date: Fri, 27 Oct 2017 15:15:40 +1300 Subject: [PATCH] Default walletdir is wallets/ if it exists --- src/wallet/walletutil.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wallet/walletutil.cpp b/src/wallet/walletutil.cpp index 85ac428b2..fbb5215a5 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;