diff --git a/src/file/filtereddiriterator.cpp b/src/file/filtereddiriterator.cpp --- a/src/file/filtereddiriterator.cpp +++ b/src/file/filtereddiriterator.cpp @@ -56,6 +56,7 @@ return m_filePath; } +try_next: m_filePath.clear(); if (!m_currentIter) { m_fileInfo = QFileInfo(); @@ -83,7 +84,7 @@ m_paths.push(m_filePath); return m_filePath; } else { - return next(); + goto try_next; } } else if (m_fileInfo.isFile()) { @@ -96,11 +97,11 @@ if (shouldIndexFile) { return m_filePath; } else { - return next(); + goto try_next; } } else { - return next(); + goto try_next; } }