mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-21 22:13:25 -06:00
#2200 Summary Plot Editor : Do not select an item when toggling item off
This commit is contained in:
parent
22e3575bc6
commit
c7b3c4bc68
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user