mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix crash entering commands into detached debugger (fixes #2987)
This commit is contained in:
parent
1bb8d52e16
commit
0cd50cae8c
|
@ -38,7 +38,7 @@ void DebuggerConsoleController::enterLine(const QString& line) {
|
|||
CoreController::Interrupter interrupter(m_gameController);
|
||||
QMutexLocker lock(&m_mutex);
|
||||
m_lines.append(line);
|
||||
if (m_cliDebugger.d.p->state == DEBUGGER_RUNNING) {
|
||||
if (m_cliDebugger.d.p && m_cliDebugger.d.p->state == DEBUGGER_RUNNING) {
|
||||
mDebuggerEnter(m_cliDebugger.d.p, DEBUGGER_ENTER_MANUAL, nullptr);
|
||||
}
|
||||
m_cond.wakeOne();
|
||||
|
|
Loading…
Reference in New Issue