]> git.tdb.fi Git - ext/subsurface.git/blobdiff - main.c
Fix profile and average depth for freedives
[ext/subsurface.git] / main.c
diff --git a/main.c b/main.c
index eae4ee2399412a1b329f1e765f77cba519735c04..2489473b9c2f9fe43f65c4ce0405fba3b79e7cc6 100644 (file)
--- a/main.c
+++ b/main.c
@@ -172,7 +172,7 @@ static void parse_argument(const char *arg)
                        if (strncmp(arg, "-psn_", 5) == 0) {
                                return;
                        }
-                       /* fallthrough */ 
+                       /* fallthrough */
                default:
                        fprintf(stderr, "Bad argument '%s'\n", arg);
                        exit(1);
@@ -190,7 +190,7 @@ void update_dive(struct dive *new_dive)
        }
        if (new_dive) {
                show_dive_info(new_dive);
-               show_dive_equipment(new_dive);
+               show_dive_equipment(new_dive, W_IDX_PRIMARY);
                show_dive_stats(new_dive);
        }
        buffered_dive = new_dive;
@@ -217,7 +217,7 @@ int main(int argc, char **argv)
        parse_xml_init();
 
        init_ui(&argc, &argv);
-       
+
        for (i = 1; i < argc; i++) {
                const char *a = argv[i];
 
@@ -227,7 +227,7 @@ int main(int argc, char **argv)
                }
                GError *error = NULL;
                parse_file(a, &error);
-               
+
                if (error != NULL)
                {
                        report_error(error);
@@ -239,5 +239,6 @@ int main(int argc, char **argv)
        report_dives(imported);
 
        run_ui();
+       exit_ui();
        return 0;
 }