From 5e2c8bdcf7d356e829640f7da2bc36c3e40b5823 Mon Sep 17 00:00:00 2001 From: Pagwin Date: Sat, 22 Nov 2025 17:10:22 -0500 Subject: [PATCH] Fixed Loader Install Cancel crash Fixed a crash which occurred when the mod loader dialog was cancelled after being reached from the no loader dialog Signed-off-by: Pagwin --- launcher/ui/pages/instance/ModFolderPage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/launcher/ui/pages/instance/ModFolderPage.cpp b/launcher/ui/pages/instance/ModFolderPage.cpp index 0e56aeff8..5e06085a5 100644 --- a/launcher/ui/pages/instance/ModFolderPage.cpp +++ b/launcher/ui/pages/instance/ModFolderPage.cpp @@ -401,10 +401,10 @@ inline bool ModFolderPage::handleNoModLoader() // Should be safe auto profile = static_cast(this->m_instance)->getPackProfile(); InstallLoaderDialog dialog(profile, QString(), this); - dialog.exec(); + bool ret = dialog.exec(); this->m_container->refreshContainer(); // returning false so the caller can go and open up the dialog it was originally going to - return false; + return !ret; } case QMessageBox::No: { // Nothing happens the dialog is already closing