Skip to content

Commit

Permalink
Qt/GameListModel: Use native separators in File Path column
Browse files Browse the repository at this point in the history
  • Loading branch information
CookiePLMonster committed Mar 19, 2020
1 parent 53c34d9 commit 4a438db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Core/DolphinQt/GameList/GameListModel.cpp
Original file line number Diff line number Diff line change
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 4a438db

Please sign in to comment.