@@ -76,6 +76,10 QLineSeries::QLineSeries(QLineSeriesPrivate &d,QObject *parent) : QXYSeries (d,p | |||||
76 | */ |
|
76 | */ | |
77 | QLineSeries::~QLineSeries() |
|
77 | QLineSeries::~QLineSeries() | |
78 | { |
|
78 | { | |
|
79 | Q_D(QLineSeries); | |||
|
80 | if(d->m_dataset){ | |||
|
81 | d->m_dataset->removeSeries(this); | |||
|
82 | } | |||
79 | } |
|
83 | } | |
80 |
|
84 | |||
81 | QAbstractSeries::QSeriesType QLineSeries::type() const |
|
85 | QAbstractSeries::QSeriesType QLineSeries::type() const |
@@ -92,9 +92,7 QAbstractSeries::QAbstractSeries(QAbstractSeriesPrivate &d, QObject *parent) : | |||||
92 | */ |
|
92 | */ | |
93 | QAbstractSeries::~QAbstractSeries() |
|
93 | QAbstractSeries::~QAbstractSeries() | |
94 | { |
|
94 | { | |
95 | if(d_ptr->m_dataset){ |
|
95 | if(d_ptr->m_dataset) qFatal("Still binded series detected !"); | |
96 | d_ptr->m_dataset->removeSeries(this); |
|
|||
97 | } |
|
|||
98 | } |
|
96 | } | |
99 |
|
97 | |||
100 | /*! |
|
98 | /*! |
General Comments 0
You need to be logged in to leave comments.
Login now