summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorLéo Lam <leo@innovatetechnologi.es>2017-09-14 18:11:06 +0200
committerLéo Lam <leo@innovatetechnologi.es>2017-09-26 17:43:50 +0200
commitca3be07e59f3248fad7e00b8293a1e168086f2db (patch)
treea3f6de7a4af9c6653f5287f3e0601e6b886d9c3a /Source/Core
parent6db55fc2d0615e7f351cc7424f4913d057f0e832 (diff)
Qt/GameList: Fix broken File Name column
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinQt2/GameList/GameList.cpp3
-rw-r--r--Source/Core/DolphinQt2/GameList/GameListModel.cpp1
2 files changed, 3 insertions, 1 deletions
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());