DolphinQt: Show WAD as "WAD" instead of "" in file format column

https://bugs.dolphin-emu.org/issues/12190
This commit is contained in:
JosJuice
2020-07-19 21:18:42 +02:00
parent 487cd7abd9
commit fe5e92f706
3 changed files with 31 additions and 12 deletions

View File

@ -168,12 +168,7 @@ QVariant GameListModel::data(const QModelIndex& index, int role) const
break;
case COL_FILE_FORMAT:
if (role == Qt::DisplayRole || role == SORT_ROLE)
{
if (game.ShouldShowFileFormatDetails())
return QString::fromStdString(DiscIO::GetName(game.GetBlobType(), true));
else
return {};
}
return QString::fromStdString(game.GetFileFormatName());
break;
case COL_BLOCK_SIZE:
if (role == Qt::DisplayRole)