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>
extern struct dive_table dive_table;
+extern int *selectiontracker;
extern int selected_dive;
#define current_dive (get_dive(selected_dive))
#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
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);
}
#include "color.h"
int selected_dive = 0;
+int *selectiontracker;
typedef enum { STABLE, SLOW, MODERATE, FAST, CRAZY } velocity_t;