summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-09-25 13:30:51 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-09-25 13:30:51 -0300
commit4f0112c4206d98c4810715d8bbee5589cdb4940f (patch)
treec79076bf0725023055b33ed24e639f4b3fe83fac /qt-ui/maintab.cpp
parent95e094c32531d5f0a78e7f8e419ab1b08b2b4197 (diff)
downloadsubsurface-4f0112c4206d98c4810715d8bbee5589cdb4940f.tar.gz
Created a placeholder for the Equipment Edition.
This creates a placeholder for the equipment edition, it will ease the 'revert' and 'apply' when editing multi dives. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r--qt-ui/maintab.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index d9249046f..a52409c87 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -329,8 +329,10 @@ void MainTab::updateDiveInfo(int dive)
ui->timeLimits->setAverage(get_time_string(seconds, 0));
ui->timeLimits->setMaximum(get_time_string(stats_selection.longest_time.seconds, 0));
ui->timeLimits->setMinimum(get_time_string(stats_selection.shortest_time.seconds, 0));
- cylindersModel->setDive(d);
- weightModel->setDive(d);
+
+ multiEditEquipmentPlaceholder = *d;
+ cylindersModel->setDive(&multiEditEquipmentPlaceholder);
+ weightModel->setDive(&multiEditEquipmentPlaceholder);
} else {
/* clear the fields */
ui->rating->setCurrentStars(0);