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:
parent
8fc9862614
commit
2c19fdf092
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user