diff --git a/dive.h b/dive.h index eb9accb6f..b42668c16 100644 --- a/dive.h +++ b/dive.h @@ -281,6 +281,7 @@ struct dive_table { extern struct dive_table dive_table; +extern int *selectiontracker; extern int selected_dive; #define current_dive (get_dive(selected_dive)) diff --git a/divelist.c b/divelist.c index a85ac7c5e..de64bd88c 100644 --- a/divelist.c +++ b/divelist.c @@ -79,7 +79,6 @@ static void dump_model(GtkListStore *store) #endif static GList *selected_dives; -static int *selectiontracker; /* when subsurface starts we want to have the last dive selected. So we simply walk to the first leaf (and skip the summary entries - which have negative 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); } diff --git a/profile.c b/profile.c index 137ed6f88..7a0eac497 100644 --- a/profile.c +++ b/profile.c @@ -14,6 +14,7 @@ #include "color.h" int selected_dive = 0; +int *selectiontracker; typedef enum { STABLE, SLOW, MODERATE, FAST, CRAZY } velocity_t;