From d406e005c95da3232ffbaf677328232dd49b8aea Mon Sep 17 00:00:00 2001 From: Octol1ttle Date: Wed, 22 Jul 2026 16:24:56 +0500 Subject: [PATCH] fix existing instance shortcuts not being detected Signed-off-by: Octol1ttle (cherry picked from commit ca3b86153d256dcaff19314da8c9fd46e57a843c) --- launcher/BaseInstance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launcher/BaseInstance.cpp b/launcher/BaseInstance.cpp index 0080cc516..77b444329 100644 --- a/launcher/BaseInstance.cpp +++ b/launcher/BaseInstance.cpp @@ -446,7 +446,7 @@ QList BaseInstance::shortcuts() const QString shortcutName = dict["name"].toString(); QString filePath = dict["filePath"].toString(); - if (!QDir(filePath).exists()) { + if (!QFileInfo::exists(filePath)) { qWarning() << "Shortcut" << shortcutName << "for instance" << name() << "have non-existent path" << filePath; continue; }