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;