]> git.tdb.fi Git - ext/subsurface.git/commit
Check if multi-dive editing is actually needed
authorMikko Rasa <tdb@tdb.fi>
Tue, 21 Aug 2012 21:35:08 +0000 (00:35 +0300)
committerMikko Rasa <tdb@tdb.fi>
Tue, 21 Aug 2012 21:43:59 +0000 (00:43 +0300)
commitdf1f506b4e874a9c5afad8d31989a2389bbcdf2d
tree2108bfeaeaa3bb7ca5fbe8ddebdba231bde03cac
parentc6be2404dafcb5032f8e35d31bca570f0ae80ef6
Check if multi-dive editing is actually needed

Context menu callbacks always invoke edit_multi_dive_info(-1) instead of
edit_dive_info.  Since -1 means "all selected", it was impossible to edit
dive notes through the context menus.  This commit makes the function
check if multiple dives are actually selected.

Signed-off-by: Mikko Rasa <tdb@tdb.fi>
info.c