GameListModel: fallback to file name if long name is empty

This commit is contained in:
Michael M 2017-08-20 13:36:29 -07:00
parent 8d7f28e79b
commit f3ab974bc6
1 changed files with 4 additions and 1 deletions

View File

@ -73,7 +73,10 @@ QVariant GameListModel::data(const QModelIndex& index, int role) const
Core::TitleDatabase::TitleType::Channel :
Core::TitleDatabase::TitleType::Other));
if (display_name.isEmpty())
return game->GetLongName();
display_name = game->GetLongName();
if (display_name.isEmpty())
display_name = game->GetFileName();
return display_name;
}