Fixed a segfault during debugging with gdbserver (#2830)

Fixes issue #2829
This commit is contained in:
rgnter 2022-04-03 20:28:45 +02:00 committed by Anton Kochkov
parent 5440a0ef50
commit cbda0ad27e

View File

@ -297,6 +297,10 @@ void DebugActions::attachRemoteDebugger()
void DebugActions::onAttachedRemoteDebugger(bool successfully)
{
// TODO(#2829): Investigate why this is happening
if (remoteDialog == nullptr)
return;
if (!successfully) {
QMessageBox msgBox;
msgBox.setText(tr("Error connecting."));