]> git.tdb.fi Git - ext/subsurface.git/commit
Add "Apply"/"Cancel" buttons to dive equipment page
authorLinus Torvalds <torvalds@linux-foundation.org>
Tue, 20 Sep 2011 16:53:45 +0000 (09:53 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 20 Sep 2011 16:59:09 +0000 (09:59 -0700)
commiteee34232dbbd24b7b3db9e44672e240db2db50e9
tree596d597d998c18c3c669e42441e1a22e616ec9f8
parente1faf417a57ca7de4c39cb03697dc70181b6a4c1
Add "Apply"/"Cancel" buttons to dive equipment page

It's too damn easy to make mistakes and not even notice them (odd gtk
widget selection and keyboard input), or just start editing a cylinder
thing and realize it was wrong.

So instead of always saving the equipment information implicitly, add
explicit "Apply" and "Cancel" buttons that save the information (or
re-load it from the dive data structure)

So now you need to press an extra button for your changes to *really*
take effect.  It can be a bit annoying, but it's better than the silent
accidental equipment change that could happen before.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
equipment.c