]> git.tdb.fi Git - ext/subsurface.git/blobdiff - main.c
Move 'dive_list_update_dives()' call into 'report_dives()'
[ext/subsurface.git] / main.c
diff --git a/main.c b/main.c
index 92eb9ee0992cccc37df60b0ee36b7095762ecacd..d259b388888214bf9b3defdb1f88dcbe8ad364e0 100644 (file)
--- a/main.c
+++ b/main.c
@@ -76,6 +76,8 @@ void report_dives(void)
                /* Redo the new 'i'th dive */
                i--;
        }
+
+       dive_list_update_dives();
 }
 
 static void parse_argument(const char *arg)
@@ -150,7 +152,6 @@ int main(int argc, char **argv)
        }
 
        report_dives();
-       dive_list_update_dives();
 
        run_ui();
        return 0;