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 GitHub
parent 99c58718ec
commit 243eded243
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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."));