diff options
Diffstat (limited to 'qt-ui/diveplanner.cpp')
-rw-r--r-- | qt-ui/diveplanner.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index ab39d42cb..37005e149 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -444,6 +444,8 @@ void DivePlannerPointsModel::loadFromDive(dive* d) for(int i = 0; i < d->dc.samples-1; i++){ backupSamples.push_back( d->dc.sample[i]); } + copy_cylinders(current_dive, stagingDive); // this way the correct cylinder data is shown + CylindersModel::instance()->setDive(stagingDive); int lasttime = 0; Q_FOREACH(const sample &s, backupSamples){ int o2 = 0, he = 0; @@ -453,6 +455,11 @@ void DivePlannerPointsModel::loadFromDive(dive* d) } } +void DivePlannerPointsModel::copyCylinders(dive *d) +{ + copy_cylinders(stagingDive, d); +} + QStringList& DivePlannerPointsModel::getGasList() { static QStringList list; |