From 74c5e60327c2a15b816275eb4b7b60d66c10573d Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Sun, 3 Feb 2019 22:03:14 +0000 Subject: [PATCH] DolphinQt: show game descriptions in one line --- Source/Core/DolphinQt/GameList/GameListModel.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Core/DolphinQt/GameList/GameListModel.cpp b/Source/Core/DolphinQt/GameList/GameListModel.cpp index d8d29e3895..ba060ad705 100644 --- a/Source/Core/DolphinQt/GameList/GameListModel.cpp +++ b/Source/Core/DolphinQt/GameList/GameListModel.cpp @@ -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)