GameListModel: fallback to file name if long name is empty
This commit is contained in:
parent
8d7f28e79b
commit
f3ab974bc6
|
@ -73,7 +73,10 @@ QVariant GameListModel::data(const QModelIndex& index, int role) const
|
||||||
Core::TitleDatabase::TitleType::Channel :
|
Core::TitleDatabase::TitleType::Channel :
|
||||||
Core::TitleDatabase::TitleType::Other));
|
Core::TitleDatabase::TitleType::Other));
|
||||||
if (display_name.isEmpty())
|
if (display_name.isEmpty())
|
||||||
return game->GetLongName();
|
display_name = game->GetLongName();
|
||||||
|
|
||||||
|
if (display_name.isEmpty())
|
||||||
|
display_name = game->GetFileName();
|
||||||
|
|
||||||
return display_name;
|
return display_name;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue