mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
b31becd2d9
commit
4bc3687b21
1 changed files with 2 additions and 1 deletions
|
@ -376,7 +376,8 @@ void ProfileWidget2::plotDives(QList<dive *> dives)
|
||||||
if (d->id == dataModel->id() && dc_number == dataModel->dcShown())
|
if (d->id == dataModel->id() && dc_number == dataModel->dcShown())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
setProfileState();
|
if (currentState == EMPTY)
|
||||||
|
setProfileState();
|
||||||
|
|
||||||
// next get the dive computer structure - if there are no samples
|
// next get the dive computer structure - if there are no samples
|
||||||
// let's create a fake profile that's somewhat reasonable for the
|
// let's create a fake profile that's somewhat reasonable for the
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue