From ec1345e1da0aa349e8dc4b66fbffee59a508536f Mon Sep 17 00:00:00 2001 From: DanielSvoboda Date: Wed, 11 Oct 2023 19:29:49 -0300 Subject: [PATCH] Update src/yuzu/main.cpp Co-authored-by: Tobias --- src/yuzu/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 4eedbdc361..a4f659e09c 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -2874,7 +2874,7 @@ void GMainWindow::OnGameListCreateShortcut(u64 program_id, const std::string& ga // Determine target directory for shortcut if (target == GameListShortcutTarget::Desktop) { - QString desktopPath = QStandardPaths::writableLocation(QStandardPaths::DesktopLocation); + const auto desktop_path = QStandardPaths::writableLocation(QStandardPaths::DesktopLocation); target_directory = desktopPath.toUtf8().toStdString(); QDir dir(QString::fromStdString(target_directory.generic_string())); if (!dir.exists()) {