diff options
Diffstat (limited to 'qt-ui/profile/profilewidget2.cpp')
-rw-r--r-- | qt-ui/profile/profilewidget2.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index 045e7ee54..790b2c611 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -375,6 +375,7 @@ void ProfileWidget2::plotDives(QList<dive*> dives) diveComputerText->animateMoveTo(1 , sceneRect().height()); qDeleteAll(allTissues); + allTissues.clear(); for(int i = 0; i < 16; i++){ DiveCalculatedCeiling *tissueItem = new DiveCalculatedCeiling(); tissueItem->setHorizontalAxis(timeAxis); @@ -382,6 +383,7 @@ void ProfileWidget2::plotDives(QList<dive*> dives) tissueItem->setModel(dataModel); tissueItem->setVerticalDataColumn(DivePlotDataModel::TISSUE_1 + i); tissueItem->setHorizontalDataColumn(DivePlotDataModel::TIME); + allTissues.append(tissueItem); scene()->addItem(tissueItem); } emit startProfileState(); |