Debugger: Fix switching threads using the threadsview

Amends 9f9c7230.

Change-Id: I58193f2d159bb6b839762b0cf02ec8fc4a9df48a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2018-08-30 14:30:45 +02:00
parent 02936521ec
commit 62fba85057
3 changed files with 14 additions and 6 deletions

View File

@@ -240,7 +240,8 @@ bool ThreadsHandler::setData(const QModelIndex &idx, const QVariant &data, int r
{
if (role == BaseTreeView::ItemActivatedRole) {
const Thread thread = itemForIndexAtLevel<1>(idx);
m_engine->selectThread(thread);
if (thread != m_currentThread)
m_engine->doSelectThread(thread);
return true;
}