diff options
author | Charles Lombardo <clombardo169@gmail.com> | 2023-11-25 04:59:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-25 04:59:55 +0100 |
commit | 5a182f4e7ccfac696cd54542089c880d002f5cc9 (patch) | |
tree | e1bcd72f38f4f57ff6b915022268b0feb86a7937 /src/yuzu/game_list_p.h | |
parent | Merge pull request #12140 from liamwhite/qcr-unreachable (diff) | |
parent | frontend_common: Don't specify default value for screenshot_path (diff) | |
download | yuzu-5a182f4e7ccfac696cd54542089c880d002f5cc9.tar yuzu-5a182f4e7ccfac696cd54542089c880d002f5cc9.tar.gz yuzu-5a182f4e7ccfac696cd54542089c880d002f5cc9.tar.bz2 yuzu-5a182f4e7ccfac696cd54542089c880d002f5cc9.tar.lz yuzu-5a182f4e7ccfac696cd54542089c880d002f5cc9.tar.xz yuzu-5a182f4e7ccfac696cd54542089c880d002f5cc9.tar.zst yuzu-5a182f4e7ccfac696cd54542089c880d002f5cc9.zip |
Diffstat (limited to 'src/yuzu/game_list_p.h')
-rw-r--r-- | src/yuzu/game_list_p.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/yuzu/game_list_p.h b/src/yuzu/game_list_p.h index 86a0c41d9..c330b574f 100644 --- a/src/yuzu/game_list_p.h +++ b/src/yuzu/game_list_p.h @@ -286,13 +286,13 @@ public: setData(QObject::tr("System Titles"), Qt::DisplayRole); break; case GameListItemType::CustomDir: { - const QString icon_name = QFileInfo::exists(game_dir->path) - ? QStringLiteral("folder") - : QStringLiteral("bad_folder"); + const QString path = QString::fromStdString(game_dir->path); + const QString icon_name = + QFileInfo::exists(path) ? QStringLiteral("folder") : QStringLiteral("bad_folder"); setData(QIcon::fromTheme(icon_name).pixmap(icon_size).scaled( icon_size, icon_size, Qt::IgnoreAspectRatio, Qt::SmoothTransformation), Qt::DecorationRole); - setData(game_dir->path, Qt::DisplayRole); + setData(path, Qt::DisplayRole); break; } default: |