Merge pull request #8847 from Techjar/faster-file-path
Qt/GameListModel: Use absolutePath for file path column
This commit is contained in:
commit
94f317010e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue