Commit 41310000 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit
Browse files

BUG: don't set check state unless different.

parent 8e48b954
......@@ -127,10 +127,14 @@ bool pqTreeViewEventPlayer::playEvent(
{
return true;
}
treeView->model()->setData(index,
static_cast<Qt::CheckState>(check_state),
Qt::CheckStateRole);
pqEventDispatcher::processEventsAndWait(10);
if (treeView->model()->data(index,
Qt::CheckStateRole).toInt() != check_state)
{
treeView->model()->setData(index,
static_cast<Qt::CheckState>(check_state),
Qt::CheckStateRole);
pqEventDispatcher::processEventsAndWait(10);
}
return true;
}
else if (command == "expand" || command == "collapse")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment