summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorMat M <mathew1800@gmail.com>2020-03-20 02:05:10 -0400
committerGitHub <noreply@github.com>2020-03-20 02:05:10 -0400
commit3bf1aa193767ed616cebed3298f03f9d89e97e26 (patch)
tree1c6c98718ce8ab2dc32879a8e2298b4d91bffaa2 /Source/Core
parent53c34d962d1ff78b1fa2555a986b2d16dd2b0324 (diff)
parent4a438db2c928a3d48d8286a1c6eedcd0e2e6e873 (diff)
Merge pull request #8679 from CookiePLMonster/file-path-native-separators
Qt/GameListModel: Use native separators in File Path column
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinQt/GameList/GameListModel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/DolphinQt/GameList/GameListModel.cpp b/Source/Core/DolphinQt/GameList/GameListModel.cpp
index b14b6291f9..2a42da3303 100644
--- a/Source/Core/DolphinQt/GameList/GameListModel.cpp
+++ b/Source/Core/DolphinQt/GameList/GameListModel.cpp
@@ -145,7 +145,8 @@ QVariant GameListModel::data(const QModelIndex& index, int role) const
case COL_FILE_PATH:
if (role == Qt::DisplayRole || role == Qt::InitialSortOrderRole)
{
- QString file_path = QFileInfo(QString::fromStdString(game.GetFilePath())).canonicalPath();
+ QString file_path = QDir::toNativeSeparators(
+ QFileInfo(QString::fromStdString(game.GetFilePath())).canonicalPath());
if (!file_path.endsWith(QDir::separator()))
file_path.append(QDir::separator());
return file_path;