forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user