Skip to content
Permalink
Browse files
Merge pull request #8847 from Techjar/faster-file-path
Qt/GameListModel: Use absolutePath for file path column
  • Loading branch information
Tilka committed Jun 6, 2020
2 parents d89162c + fa208c4 commit 94f3170
Showing 1 changed file with 1 addition and 1 deletion.
@@ -146,7 +146,7 @@ QVariant GameListModel::data(const QModelIndex& index, int role) const
if (role == Qt::DisplayRole || role == Qt::InitialSortOrderRole)
{
QString file_path = QDir::toNativeSeparators(
QFileInfo(QString::fromStdString(game.GetFilePath())).canonicalPath());
QFileInfo(QString::fromStdString(game.GetFilePath())).absolutePath());
if (!file_path.endsWith(QDir::separator()))
file_path.append(QDir::separator());
return file_path;

0 comments on commit 94f3170

Please sign in to comment.