Fix infinite loop in SkinManageDialog (#5388)

This commit is contained in:
Alexandru Ionut Tripon 2026-04-14 16:30:03 +00:00 committed by GitHub
commit 7e8db63882
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -121,7 +121,7 @@ bool SkinList::update()
auto folderContents = m_dir.entryInfoList();
// if there are any untracked files...
for (QFileInfo entry : folderContents) {
if (!entry.isFile() && entry.suffix() != "png")
if (!entry.isFile() || entry.suffix() != "png")
continue;
SkinModel w(entry.absoluteFilePath());