DolphinQt: show game descriptions in one line

This commit is contained in:
Tillmann Karras 2019-02-03 22:03:14 +00:00
parent b72b128076
commit 74c5e60327

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)