Debugger: Fix crash on start debugging

Change-Id: Iff517a977f85bd4ac6e1fdac502797f2455ae6f6
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Marcus Tillmanns
2022-10-25 12:35:11 +02:00
parent 6cc47de5b1
commit b9062e9c80

View File

@@ -1369,7 +1369,8 @@ void DebuggerEngine::notifyInferiorStopFailed()
void DebuggerEnginePrivate::setInitialActionStates()
{
m_returnWindow->setVisible(false);
if (m_returnWindow)
m_returnWindow->setVisible(false);
setBusyCursor(false);
m_recordForReverseOperationAction.setCheckable(true);
@@ -1417,7 +1418,8 @@ void DebuggerEnginePrivate::setInitialActionStates()
debuggerSettings()->autoDerefPointers.setEnabled(true);
debuggerSettings()->expandStack.setEnabled(false);
m_threadLabel->setEnabled(false);
if (m_threadLabel)
m_threadLabel->setEnabled(false);
}
void DebuggerEnginePrivate::updateState()