All the callers were always calling report_dives first, followed by
dive_list_update_dives(). And there really was no reason to have the
callers call two separate functions for the "I've added new dives" case.
So just call dive_list_update_dives() directly from report_dives(), and
remove it from the callers.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
}
g_slist_free(filenames);
report_dives();
- dive_list_update_dives();
}
gtk_widget_destroy(dialog);
}
gtk_widget_destroy(dialog);
report_dives();
- dive_list_update_dives();
}
void update_progressbar(progressbar_t *progress, double value)
/* Redo the new 'i'th dive */
i--;
}
+
+ dive_list_update_dives();
}
static void parse_argument(const char *arg)
}
report_dives();
- dive_list_update_dives();
run_ui();
return 0;