diff options
-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; |