mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
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
Block a user