KeysFiles: QDirIterator is initially located before the first entry

This commit is contained in:
xiphon 2020-10-05 12:36:00 +00:00
parent afc2e846fd
commit 13ca3eeb84

View file

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