diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-05-12 21:26:12 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-20 14:29:24 +0900 |
commit | 4bc3687b21e75839f89b8daa284a29aa31dd6673 (patch) | |
tree | 1413f2c40dd746047b65af0d0a416c49dc98acb3 /qt-ui/profile/profilewidget2.cpp | |
parent | b31becd2d9710011f2a759dcfd72dcb30a8a09df (diff) | |
download | subsurface-4bc3687b21e75839f89b8daa284a29aa31dd6673.tar.gz |
Only set the state to profile if it's empty, not if it's Add or Plan.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/profilewidget2.cpp')
-rw-r--r-- | qt-ui/profile/profilewidget2.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index 097f03d52..3d55a32ec 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -376,7 +376,8 @@ void ProfileWidget2::plotDives(QList<dive *> dives) if (d->id == dataModel->id() && dc_number == dataModel->dcShown()) return; - setProfileState(); + if (currentState == EMPTY) + setProfileState(); // next get the dive computer structure - if there are no samples // let's create a fake profile that's somewhat reasonable for the |