#2200 Summary Plot Editor : Do not select an item when toggling item off

This commit is contained in:
Magne Sjaastad 2017-12-08 13:06:49 +01:00
parent 22e3575bc6
commit c7b3c4bc68

View File

@ -492,7 +492,14 @@ void PdmUiTreeSelectionEditor::slotCurrentChanged(const QModelIndex& current, co
//--------------------------------------------------------------------------------------------------
void PdmUiTreeSelectionEditor::slotClicked(const QModelIndex& current)
{
m_treeView->setCurrentIndex(current);
if (current.isValid())
{
QVariant v = m_proxyModel->data(current, Qt::CheckStateRole);
if (v == Qt::Checked)
{
m_treeView->setCurrentIndex(current);
}
}
}
//--------------------------------------------------------------------------------------------------