@@ -120,6 +120,8 void ChartPresenter::handleSeriesRemoved(QAbstractSeries *series) | |||||
120 | chart->hide(); |
|
120 | chart->hide(); | |
121 | chart->disconnect(); |
|
121 | chart->disconnect(); | |
122 | chart->deleteLater(); |
|
122 | chart->deleteLater(); | |
|
123 | if (chart->animation()) | |||
|
124 | chart->animation()->stopAndDestroyLater(); | |||
123 | m_chartItems.removeAll(chart); |
|
125 | m_chartItems.removeAll(chart); | |
124 | m_series.removeAll(series); |
|
126 | m_series.removeAll(series); | |
125 | m_layout->invalidate(); |
|
127 | m_layout->invalidate(); |
General Comments 0
You need to be logged in to leave comments.
Login now