mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
GameListModel: fallback to file name if long name is empty
This commit is contained in:
@ -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