summaryrefslogtreecommitdiffstats
path: root/info.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-08-16 12:48:29 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-08-16 12:51:32 -0700
commitf6dfb0094cf095241377fae52ed02247cf3d03f5 (patch)
tree387b29f58f15d8056a3b715d7747e891ab887fad /info.c
parent673cf274f8841686019827ff0f7c81d0f04f813b (diff)
downloadsubsurface-f6dfb0094cf095241377fae52ed02247cf3d03f5.tar.gz
Fix right click edit in Dive Notes area for multiple dives
This fixes the bug that triggered the SIGSEGV that Linus worked around earlier. I had forgotten to update this call path to the edit_multi_dive_info function. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'info.c')
-rw-r--r--info.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/info.c b/info.c
index 6842d3d5b..e9a08ca2a 100644
--- a/info.c
+++ b/info.c
@@ -132,11 +132,12 @@ static int delete_dive_info(struct dive *dive)
static void info_menu_edit_cb(GtkMenuItem *menuitem, gpointer user_data)
{
- edit_dive_info(current_dive);
+ edit_multi_dive_info(amount_selected, selectiontracker);
}
static void info_menu_delete_cb(GtkMenuItem *menuitem, gpointer user_data)
{
+ /* this needs to delete all the selected dives as well, I guess? */
delete_dive_info(current_dive);
}