X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=main.c;h=a09bfe03a01099efebe11f7337df2838a775e3f3;hb=88e679ab1df89b2b14f40f4566095d5a01439c05;hp=be52dbd979c1b81558b892bad4664e45691acd21;hpb=8605d68824042390b858c4ee9b9afdc6844ab312;p=ext%2Fsubsurface.git diff --git a/main.c b/main.c index be52dbd..a09bfe0 100644 --- a/main.c +++ b/main.c @@ -139,6 +139,9 @@ void report_dives(void) if (last && last->number) try_to_renumber(last, preexisting); + /* did we have dives in the table and added more? */ + if (last && preexisting != dive_table.nr) + mark_divelist_changed(TRUE); dive_table.preexisting = dive_table.nr; dive_list_update_dives(); } @@ -184,6 +187,7 @@ void renumber_dives(int nr) struct dive *dive = dive_table.dives[i]; dive->number = nr + i; } + mark_divelist_changed(TRUE); } int main(int argc, char **argv)