##// END OF EJS Templates
Fix crash when signals connected to deleted PieChartItem are emitted...
Miikka Heikkinen -
r2423:5eb5ce9ed083
parent child
Show More
@@ -58,6 +58,14 PieChartItem::PieChartItem(QPieSeries *series, QGraphicsItem* item)
58 PieChartItem::~PieChartItem()
58 PieChartItem::~PieChartItem()
59 {
59 {
60 // slices deleted automatically through QGraphicsItem
60 // slices deleted automatically through QGraphicsItem
61 if (m_series) {
62 m_series->disconnect(this);
63 QPieSeriesPrivate::fromSeries(m_series)->disconnect(this);
64 }
65 foreach (QPieSlice *slice, m_sliceItems.keys()) {
66 slice->disconnect(this);
67 QPieSlicePrivate::fromSlice(slice)->disconnect(this);
68 }
61 }
69 }
62
70
63 void PieChartItem::setAnimation(PieAnimation *animation)
71 void PieChartItem::setAnimation(PieAnimation *animation)
General Comments 0
You need to be logged in to leave comments. Login now