summaryrefslogtreecommitdiffstats
path: root/divelist-gtk.c
diff options
context:
space:
mode:
Diffstat (limited to 'divelist-gtk.c')
-rw-r--r--divelist-gtk.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/divelist-gtk.c b/divelist-gtk.c
index 189b75ba1..e1482ee06 100644
--- a/divelist-gtk.c
+++ b/divelist-gtk.c
@@ -801,7 +801,6 @@ static gint gtk_dive_nr_sort(GtkTreeModel *model,
return dive_nr_sort(idx_a, idx_b, when_a, when_b);
}
-
static struct divelist_column {
const char *header;
data_func_t data;
@@ -895,6 +894,12 @@ static void row_activated_cb(GtkTreeView *tree_view,
edit_dive_info(get_dive(index), FALSE);
}
+void report_dives(bool is_imported, bool prefer_imported)
+{
+ process_dives(is_imported, prefer_imported);
+ dive_list_update_dives();
+}
+
void add_dive_cb(GtkWidget *menuitem, gpointer data)
{
struct dive *dive;