Skip to content

Commit 4719177

Browse files
committed
Fix crashing when doing remote debugging. Fix #534
1 parent c9c5d1c commit 4719177

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ui/ui.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -377,11 +377,11 @@ void GlobalDebuggerUI::SetupMenu(UIContext* context)
377377
auto prompt = QString("You are about to launch \n\n%1\n\non your machine. "
378378
"This may harm your machine. Are you sure to continue?").
379379
arg(QString::fromStdString(controller->GetExecutablePath()));
380-
if (QMessageBox::question(ctxt.context->mainWindow(), "Launch Target", prompt) != QMessageBox::Yes)
380+
if (QMessageBox::question(context->mainWindow(), "Launch Target", prompt) != QMessageBox::Yes)
381381
return;
382382
}
383383

384-
if (!ensureBinaryViewHasPlatform(controller->GetData(), ctxt.context->mainWindow()))
384+
if (!ensureBinaryViewHasPlatform(controller->GetData(), context->mainWindow()))
385385
return;
386386

387387
QString text = QString(
@@ -548,7 +548,7 @@ void GlobalDebuggerUI::SetupMenu(UIContext* context)
548548

549549
controller->SetPIDAttach(pid);
550550

551-
if (!ensureBinaryViewHasPlatform(controller->GetData(), ctxt.context->mainWindow()))
551+
if (!ensureBinaryViewHasPlatform(controller->GetData(), context->mainWindow()))
552552
return;
553553

554554
QString text = QString(
@@ -649,7 +649,7 @@ void GlobalDebuggerUI::SetupMenu(UIContext* context)
649649
if (dialog->exec() != QDialog::Accepted)
650650
return;
651651

652-
if (!ensureBinaryViewHasPlatform(controller->GetData(), ctxt.context->mainWindow()))
652+
if (!ensureBinaryViewHasPlatform(controller->GetData(), context->mainWindow()))
653653
return;
654654

655655
QString text = QString(

0 commit comments

Comments
 (0)