Debugger: Fix stack frame switching by mouse

Regression introduced by 2d79bdc2.

Change-Id: Ib5befb9c0730c9c2b46891139a9b15154300eced
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2016-07-18 18:50:01 +02:00
committed by hjk
parent 6e4da842ef
commit 901ad4693d

View File

@@ -168,9 +168,8 @@ Qt::ItemFlags StackHandler::flags(const QModelIndex &index) const
bool StackHandler::setData(const QModelIndex &idx, const QVariant &data, int role)
{
Q_UNUSED(idx)
if (role == BaseTreeView::ItemActivatedRole) {
if (role == BaseTreeView::ItemActivatedRole || role == BaseTreeView::ItemClickedRole) {
m_engine->activateFrame(idx.row());
return true;
}