From 4a438db2c928a3d48d8286a1c6eedcd0e2e6e873 Mon Sep 17 00:00:00 2001 From: Silent Date: Thu, 19 Mar 2020 18:03:35 +0100 Subject: [PATCH] Qt/GameListModel: Use native separators in File Path column --- Source/Core/DolphinQt/GameList/GameListModel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;