]> git.tdb.fi Git - ext/subsurface.git/commit
Change calling convention of 'edit_cylinder_info'
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 3 Oct 2011 00:16:50 +0000 (17:16 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 3 Oct 2011 00:16:50 +0000 (17:16 -0700)
commitd51f40bdcff32b1a5d5dedea054db8de06de5e07
tree12ff710179ba128cf0fe1b1e1b381783a92a299e
parent3e1b3c5c7fe6242319e8f4f994a1ca472fbed4ad
Change calling convention of 'edit_cylinder_info'

Instead of passing it the model and iterator (which requires that we
create the new entry for an 'add' event even if we then cancel the
operation), just make the caller do the final cylinder list update.

This way we can make 'add' work more sanely: if you cancel the add, we
now do not create an empty cylinder entry at the end.

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