From ca3be07e59f3248fad7e00b8293a1e168086f2db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Thu, 14 Sep 2017 18:11:06 +0200 Subject: [PATCH] Qt/GameList: Fix broken File Name column --- Source/Core/DolphinQt2/GameList/GameList.cpp | 3 ++- Source/Core/DolphinQt2/GameList/GameListModel.cpp | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Core/DolphinQt2/GameList/GameList.cpp b/Source/Core/DolphinQt2/GameList/GameList.cpp index 90510c5b04..1402cfeaa5 100644 --- a/Source/Core/DolphinQt2/GameList/GameList.cpp +++ b/Source/Core/DolphinQt2/GameList/GameList.cpp @@ -484,7 +484,8 @@ void GameList::OnColumnVisibilityToggled(const QString& row, bool visible) {tr("Platform"), GameListModel::COL_PLATFORM}, {tr("Size"), GameListModel::COL_SIZE}, {tr("Title"), GameListModel::COL_TITLE}, - {tr("State"), GameListModel::COL_RATING}}; + {tr("State"), GameListModel::COL_RATING}, + {tr("File Name"), GameListModel::COL_FILE_NAME}}; m_list->setColumnHidden(rowname_to_col_index[row], !visible); } diff --git a/Source/Core/DolphinQt2/GameList/GameListModel.cpp b/Source/Core/DolphinQt2/GameList/GameListModel.cpp index f6060c1deb..01744150a3 100644 --- a/Source/Core/DolphinQt2/GameList/GameListModel.cpp +++ b/Source/Core/DolphinQt2/GameList/GameListModel.cpp @@ -101,6 +101,7 @@ QVariant GameListModel::data(const QModelIndex& index, int role) const case COL_FILE_NAME: if (role == Qt::DisplayRole || role == Qt::InitialSortOrderRole) return game->GetFileName(); + break; case COL_SIZE: if (role == Qt::DisplayRole) return FormatSize(game->GetFileSize());