From: Linus Torvalds Date: Fri, 21 Oct 2011 13:14:45 +0000 (+0300) Subject: Repaint dive after equipment change only after updating the cylinder info X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=a9709a5e076de598eaefab49e739918bf351bb14;p=ext%2Fsubsurface.git Repaint dive after equipment change only after updating the cylinder info Repainting the dive will end up touching the cylinder list store, so we should finish setting the cylinder info before we repaint it. Signed-off-by: Linus Torvalds --- diff --git a/equipment.c b/equipment.c index 4d90741..5ff8f0f 100644 --- a/equipment.c +++ b/equipment.c @@ -522,7 +522,6 @@ static int edit_cylinder_dialog(int index, cylinder_t *cyl) dive->cylinder[index] = *cyl; mark_divelist_changed(TRUE); flush_divelist(dive); - repaint_dive(); } gtk_widget_destroy(dialog); @@ -561,6 +560,7 @@ static void edit_cb(GtkButton *button, gpointer data) return; set_one_cylinder(index, &cyl, model, &iter); + repaint_dive(); } static void add_cb(GtkButton *button, gpointer data)