1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-25 12:12:50 +01:00

Fix off by one error in trophies (#3715)

This commit is contained in:
Robbie 2017-11-12 11:36:13 -06:00 committed by Ani
parent 8fc9862614
commit 2c19fdf092

View File

@ -65,16 +65,15 @@ trophy_manager_dialog::trophy_manager_dialog() : QWidget(), m_sort_column(0), m_
// Populate the trophy database
QDirIterator dir_iter(qstr(vfs::get(m_TROPHY_DIR)));
while (dir_iter.hasNext())
{
if (dir_iter.fileName() == "" || dir_iter.fileName() == "." || dir_iter.fileName() == ".." || dir_iter.fileName() == ".gitignore")
{
dir_iter.next();
if (dir_iter.fileName() == "." || dir_iter.fileName() == ".." || dir_iter.fileName() == ".gitignore")
{
continue;
}
std::string dirName = sstr(dir_iter.fileName());
LOG_TRACE(GENERAL, "Loading trophy dir: %s", dirName);
LoadTrophyFolderToDB(dirName);
dir_iter.next();
}
PopulateUI();