From a44db30e6f38523ef3b648c02678d2a7fc0447b3 Mon Sep 17 00:00:00 2001 From: Xusheng Date: Fri, 14 Apr 2023 17:07:22 +0800 Subject: [PATCH] Fix crash when trying to connect to a remote process on Linux --- ui/ui.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/ui.cpp b/ui/ui.cpp index 774eb24..788e677 100644 --- a/ui/ui.cpp +++ b/ui/ui.cpp @@ -335,7 +335,7 @@ void GlobalDebuggerUI::SetupMenu(UIContext* context) "The debugger is launching the target and preparing the debugger binary view. \n" "This might take a while."); ProgressTask* task = new ProgressTask( - ctxt.widget, "Launching", text, "", [&](std::function progress) { + context->mainWindow(), "Launching", text, "", [&](std::function progress) { controller->Launch(); // For now, this cant be canceled, as the Debugger model wasn't @@ -498,7 +498,7 @@ void GlobalDebuggerUI::SetupMenu(UIContext* context) "The debugger is attaching to the target and preparing the debugger binary view. \n" "This might take a while."); ProgressTask* task = new ProgressTask( - ctxt.widget, "Attaching", text, "", [&](std::function progress) { + context->mainWindow(), "Attaching", text, "", [&](std::function progress) { controller->Attach(); // For now, this cant be canceled, as the Debugger model wasn't @@ -596,7 +596,7 @@ void GlobalDebuggerUI::SetupMenu(UIContext* context) "The debugger is connecting to the target and preparing the debugger binary view. \n" "This might take a while."); ProgressTask* task = new ProgressTask( - ctxt.widget, "Connecting", text, "", [&](std::function progress) { + context->mainWindow(), "Connecting", text, "", [&](std::function progress) { controller->Connect(); // For now, this cant be canceled, as the Debugger model wasn't