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("");