Merge pull request #3968

aac43e8 display wallet files with . in name (plowsof)
This commit is contained in:
luigi1111 2022-07-14 13:00:44 -04:00
commit cb28263cb1
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

@ -115,12 +115,12 @@ void WalletKeysFilesModel::findWallets(const QString &moneroAccountsDir)
QFileInfo keysFileinfo = it.fileInfo(); QFileInfo keysFileinfo = it.fileInfo();
constexpr const char keysFileExtension[] = "keys"; constexpr const char keysFileExtension[] = "keys";
if (!keysFileinfo.isFile() || keysFileinfo.completeSuffix() != keysFileExtension) if (!keysFileinfo.isFile() || keysFileinfo.suffix() != keysFileExtension)
{ {
continue; continue;
} }
QString wallet(keysFileinfo.path() + QDir::separator() + keysFileinfo.baseName()); QString wallet(keysFileinfo.path() + QDir::separator() + keysFileinfo.completeBaseName());
quint8 networkType = NetworkType::MAINNET; quint8 networkType = NetworkType::MAINNET;
QString address = QString(""); QString address = QString("");