Commit 18149033 authored by Lorenz Meier's avatar Lorenz Meier

Merge pull request #408 from thomasgubler/plotfilter

LinechartWidget: fix removal of curves
parents 942a02c9 ee32097e
......@@ -673,9 +673,19 @@ void LinechartWidget::removeCurve(QString curve)
widget = curveVariances->take(curve);
curvesWidgetLayout->removeWidget(widget);
widget->deleteLater();
// widget = colorIcons->take(curve);
// curvesWidgetLayout->removeWidget(colorIcons->take(curve));
widget = colorIcons.take(curve);
curvesWidgetLayout->removeWidget(widget);
widget->deleteLater();
widget = curveNameLabels.take(curve);
curvesWidgetLayout->removeWidget(widget);
widget->deleteLater();
widget = curveUnits.take(curve);
curvesWidgetLayout->removeWidget(widget);
widget->deleteLater();
QCheckBox* checkbox;
checkbox = checkBoxes.take(curve);
curvesWidgetLayout->removeWidget(checkbox);
checkbox->deleteLater();
// intData->remove(curve);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment