Merge pull request #3130

13ca3ee KeysFiles: QDirIterator is initially located before the first entry (xiphon)
This commit is contained in:
luigi1111 2020-10-08 10:34:53 -05:00
commit d3943ca2a9
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

View File

@ -108,8 +108,10 @@ void WalletKeysFilesModel::refresh(const QString &moneroAccountsDir)
void WalletKeysFilesModel::findWallets(const QString &moneroAccountsDir)
{
QDirIterator it(moneroAccountsDir, QDirIterator::Subdirectories);
for (; it.hasNext(); it.next())
while (it.hasNext())
{
it.next();
QFileInfo keysFileinfo = it.fileInfo();
constexpr const char keysFileExtension[] = "keys";