Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #8679 from CookiePLMonster/file-path-native-separa…
…tors

Qt/GameListModel: Use native separators in File Path column
  • Loading branch information
lioncash committed Mar 20, 2020
2 parents 53c34d9 + 4a438db commit 3bf1aa1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Core/DolphinQt/GameList/GameListModel.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 3bf1aa1

Please sign in to comment.