Skip to content
Permalink
Browse files
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.
@@ -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;

0 comments on commit 3bf1aa1

Please sign in to comment.