]> git.tdb.fi Git - ext/subsurface.git/blobdiff - main.c
Minor tweaks to column headers
[ext/subsurface.git] / main.c
diff --git a/main.c b/main.c
index 7c7ec8c3e350ecd97af4a76d17f2a4b248ba6c81..cc90e4235c667ab7aad2a0289e2d4198ea6fecef 100644 (file)
--- a/main.c
+++ b/main.c
@@ -98,6 +98,7 @@ void update_dive(struct dive *new_dive)
        if (old_dive) {
                flush_dive_info_changes(old_dive);
                flush_dive_equipment_changes(old_dive);
+               flush_divelist(&dive_list, old_dive);
        }
        if (new_dive) {
                show_dive_info(new_dive);
@@ -462,11 +463,11 @@ int main(int argc, char **argv)
 
        /* Create the actual divelist */
        dive_list = dive_list_create();
-       gtk_paned_add1(GTK_PANED(paned), dive_list.container_widget);
+       gtk_paned_add2(GTK_PANED(paned), dive_list.container_widget);
 
        /* VBox for dive info, and tabs */
        info_box = gtk_vbox_new(FALSE, 6);
-       gtk_paned_add2(GTK_PANED(paned), info_box);
+       gtk_paned_add1(GTK_PANED(paned), info_box);
 
        /* Notebook for dive info vs profile vs .. */
        notebook = gtk_notebook_new();