summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index 01306b1bf..46e22041d 100644
--- a/main.c
+++ b/main.c
@@ -140,8 +140,8 @@ void report_dives(gboolean is_imported)
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)
+ /* did we add dives to the dive table? */
+ if (preexisting != dive_table.nr)
mark_divelist_changed(TRUE);
}
dive_table.preexisting = dive_table.nr;