mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4599 AppFwk : Do not scroll to item when item is collapsed
This commit is contained in:
parent
97c795cda4
commit
d065014571
@ -332,7 +332,11 @@ void PdmUiTreeViewEditor::setExpanded(const PdmUiItem* uiItem, bool doExpand) co
|
||||
{
|
||||
QModelIndex index = m_treeViewModel->findModelIndex(uiItem);
|
||||
m_treeView->setExpanded(index, doExpand);
|
||||
|
||||
if (doExpand)
|
||||
{
|
||||
m_treeView->scrollTo(index);
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user