mirror of
https://github.com/PrismLauncher/PrismLauncher
synced 2026-04-23 09:05:03 +00:00
Fix infinite loop in SkinManageDialog (#5388)
This commit is contained in:
commit
7e8db63882
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Reference in a new issue