diff --git a/connection.cpp b/connection.cpp --- a/connection.cpp +++ b/connection.cpp @@ -190,9 +190,10 @@ void Connection::setState(DebugSession::DebuggerState state) { qDebug() << state; - if (m_currentState != state) { - m_currentState = state; + if (m_currentState == state) { + return; } + m_currentState = state; emit stateChanged(state); }