From 13ca3eeb84f091d42df597a517755d2022b832c5 Mon Sep 17 00:00:00 2001 From: xiphon Date: Mon, 5 Oct 2020 12:36:00 +0000 Subject: [PATCH] KeysFiles: QDirIterator is initially located before the first entry --- src/qt/KeysFiles.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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";