From aac43e8a1a4c7e32fdfaebd931f9d8bb5e9016e0 Mon Sep 17 00:00:00 2001 From: plowsof Date: Wed, 13 Jul 2022 02:12:33 +0100 Subject: [PATCH] display wallet files with "." in name --- src/qt/KeysFiles.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qt/KeysFiles.cpp b/src/qt/KeysFiles.cpp index 05f93608..31186950 100644 --- a/src/qt/KeysFiles.cpp +++ b/src/qt/KeysFiles.cpp @@ -115,12 +115,12 @@ void WalletKeysFilesModel::findWallets(const QString &moneroAccountsDir) QFileInfo keysFileinfo = it.fileInfo(); constexpr const char keysFileExtension[] = "keys"; - if (!keysFileinfo.isFile() || keysFileinfo.completeSuffix() != keysFileExtension) + if (!keysFileinfo.isFile() || keysFileinfo.suffix() != keysFileExtension) { continue; } - QString wallet(keysFileinfo.path() + QDir::separator() + keysFileinfo.baseName()); + QString wallet(keysFileinfo.path() + QDir::separator() + keysFileinfo.completeBaseName()); quint8 networkType = NetworkType::MAINNET; QString address = QString("");