diff --git a/src/qt/KeysFiles.cpp b/src/qt/KeysFiles.cpp index 51a49a4d..bcbb4ba0 100644 --- a/src/qt/KeysFiles.cpp +++ b/src/qt/KeysFiles.cpp @@ -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";