GameListModel: fallback to file name if long name is empty
This commit is contained in:
1 parent
8d7f28e79b
commit
f3ab974bc6
1 file changed
+4
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user