]> git.tdb.fi Git - ext/subsurface.git/commit
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)
commit8cdf1ab59fed02d4740c13f0906dbdbc85043a53
tree6ee8c6d2513e83a1f3a4d859a728c6ca07fd0d39
parent7fe652ab5738717ba443ae9de2b8f437103fd71b
Remember the last weight used per weightsystem

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>
equipment.c