mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Intermediate fixes to avoid noise from asserts
This commit is contained in:
@@ -105,7 +105,7 @@ bool PdmUiTreeOrdering::containsObject(const PdmObjectHandle* object)
|
||||
{
|
||||
PdmUiTreeOrdering* child = dynamic_cast<PdmUiTreeOrdering*>(this->child(cIdx)); // What again ???
|
||||
|
||||
if (child->object() == object)
|
||||
if (child->isRepresentingObject() && child->object() == object)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -483,7 +483,8 @@ QVariant PdmUiTreeViewModel::data(const QModelIndex &index, int role ) const
|
||||
bool isFieldRep = uitreeOrdering->isRepresentingField();
|
||||
bool isDisplayOnly = uitreeOrdering->isDisplayItemOnly();
|
||||
|
||||
assert (uitreeOrdering->isValid()); // Tree generation has some error.
|
||||
// MODTODO
|
||||
//assert (uitreeOrdering->isValid()); // Tree generation has some error.
|
||||
|
||||
if (role == Qt::DisplayRole || role == Qt::EditRole)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user