diff options
| author | Mat M <mathew1800@gmail.com> | 2020-03-20 02:05:10 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-20 02:05:10 -0400 |
| commit | 3bf1aa193767ed616cebed3298f03f9d89e97e26 (patch) | |
| tree | 1c6c98718ce8ab2dc32879a8e2298b4d91bffaa2 /Source/Core | |
| parent | 53c34d962d1ff78b1fa2555a986b2d16dd2b0324 (diff) | |
| parent | 4a438db2c928a3d48d8286a1c6eedcd0e2e6e873 (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.cpp | 3 |
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; |
