Skip to content

Commit f3be2c0

Browse files
authored
Construct the qualified path of variable (#14341) (#14342)
Fixes #14339 Avoid double delete
1 parent cbdd6ab commit f3be2c0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

OMEdit/OMEditLIB/Plotting/VariablesWidget.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,6 @@ VariablesTreeItem::~VariablesTreeItem()
101101
{
102102
qDeleteAll(mChildren);
103103
mChildren.clear();
104-
qDeleteAll(mChildrenHash);
105-
mChildrenHash.clear();
106104
}
107105

108106
/*!
@@ -196,8 +194,6 @@ void VariablesTreeItem::removeChildren()
196194
{
197195
qDeleteAll(mChildren);
198196
mChildren.clear();
199-
qDeleteAll(mChildrenHash);
200-
mChildrenHash.clear();
201197
}
202198

203199
void VariablesTreeItem::removeChild(VariablesTreeItem *pVariablesTreeItem)
@@ -859,7 +855,7 @@ bool VariablesTreeModel::insertVariablesItems(QString fileName, QString filePath
859855
if (parentVariable.isEmpty()) {
860856
findVariable = fileName % "." % variable;
861857
} else {
862-
findVariable = fileName % parentVariable % variable;
858+
findVariable = fileName % "." % parentVariable % "." % variable;
863859
}
864860
}
865861
// if its the last item then don't try to find the item as we will always fail to find it

0 commit comments

Comments
 (0)