From 3cd3bba720bd5451e86c3585db5294c2948c0e65 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Tue, 22 Nov 2022 11:32:14 +0100 Subject: [PATCH] Debugger: update thread selector after setting current thread manually The issue is only reproducible when interrupting a running inferior with cdb. Change-Id: I336413d7f36aad28108623eb1bf8015b42f3dbb4 Reviewed-by: Christian Stenger --- src/plugins/debugger/threadshandler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/debugger/threadshandler.cpp b/src/plugins/debugger/threadshandler.cpp index cc0920fb121..286b58258f1 100644 --- a/src/plugins/debugger/threadshandler.cpp +++ b/src/plugins/debugger/threadshandler.cpp @@ -268,6 +268,7 @@ void ThreadsHandler::setCurrentThread(const Thread &thread) m_currentThread = thread; thread->update(); + threadSwitcher()->setCurrentIndex(thread->index().row()); } void ThreadsHandler::notifyGroupCreated(const QString &groupId, const QString &pid)