Skip to content

Commit

Permalink
DolphinQt: show game descriptions in one line
Browse files Browse the repository at this point in the history
  • Loading branch information
Tilka committed Feb 3, 2019
1 parent b72b128 commit 74c5e60
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/Core/DolphinQt/GameList/GameListModel.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -123,7 +123,10 @@ QVariant GameListModel::data(const QModelIndex& index, int role) const
break; break;
case COL_DESCRIPTION: case COL_DESCRIPTION:
if (role == Qt::DisplayRole || role == Qt::InitialSortOrderRole) if (role == Qt::DisplayRole || role == Qt::InitialSortOrderRole)
return QString::fromStdString(game.GetDescription()); {
return QString::fromStdString(game.GetDescription())
.replace(QLatin1Char('\n'), QLatin1Char(' '));
}
break; break;
case COL_MAKER: case COL_MAKER:
if (role == Qt::DisplayRole || role == Qt::InitialSortOrderRole) if (role == Qt::DisplayRole || role == Qt::InitialSortOrderRole)
Expand Down

0 comments on commit 74c5e60

Please sign in to comment.