HomePhabricator
Diffusion MITK fdfabc089f2d

Enalbe NodeChanged event trigger and pre-check if update is necessary

Description

Enalbe NodeChanged event trigger and pre-check if update is necessary

Details

Auditors
floca
kalali
Provenance
kalaliAuthored on Jan 15 2020, 6:26 PM
kalaliPushed on Jan 15 2020, 6:27 PM
Parents
rMITK0bb2c01d5b33: Revert changes for updating the view of the inspector manually
Branches
Unknown
Tags
Unknown

Event Timeline

kalali added inline comments.
/Modules/QtWidgets/src/QmitkDataStorageDefaultListModel.cpp
39

Please verify the logic of this function.

floca added a subscriber: floca.

Logic is correct. But I would condense it to remove redundancy (see inline comment).

/Modules/QtWidgets/src/QmitkDataStorageDefaultListModel.cpp
43–55

Can be condensed to

if (m_NodePredicate.IsNull() || m_NodePredicate->CheckNode(node))
{
  UpdateModelData();
  return;
}
All concerns with this commit have now been addressed.Jan 15 2020, 7:48 PM
kalali added inline comments.
/Modules/QtWidgets/src/QmitkDataStorageDefaultListModel.cpp
43–55

You're absolutely right!

kalali marked an inline comment as done.