]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Remember the last weight used per weightsystem
authorDirk Hohndel <dirk@hohndel.org>
Mon, 6 Aug 2012 19:55:55 +0000 (12:55 -0700)
committerDirk Hohndel <dirk@hohndel.org>
Mon, 6 Aug 2012 20:03:20 +0000 (13:03 -0700)
With this change, if the user adds a new weightsystem to a dive, on
subsequent edits the weight amount for this weightsystem no longer
defaults to 0 but to the last weight that was used with this weightsystem.

So when the program imports a set of dives from the divecomputer and the
user starts editing them, once they enter the weight for the "integrated"
weightsystem the first time, for each of the consecutive dives that same
weight is the default once "integrated" is selected - which usually will
be the correct amount.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>

No differences found