Merge pull request #7781 from Tilka/game_desc

DolphinQt: show game descriptions in one line
This commit is contained in:
Tilka 2019-02-04 02:53:05 +00:00 committed by GitHub
commit 972946277c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,7 +123,10 @@ QVariant GameListModel::data(const QModelIndex& index, int role) const
break;
case COL_DESCRIPTION:
if (role == Qt::DisplayRole || role == Qt::InitialSortOrderRole)
return QString::fromStdString(game.GetDescription());
{
return QString::fromStdString(game.GetDescription())
.replace(QLatin1Char('\n'), QLatin1Char(' '));
}
break;
case COL_MAKER:
if (role == Qt::DisplayRole || role == Qt::InitialSortOrderRole)