summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-10-21 16:14:45 +0300
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-10-21 16:14:45 +0300
commita9709a5e076de598eaefab49e739918bf351bb14 (patch)
tree1d2506ec8aa20cd2a5716da5bfbaec02ca3730ff
parent41084817eaa30204c1144f5c1fd1b5567d486da8 (diff)
downloadsubsurface-a9709a5e076de598eaefab49e739918bf351bb14.tar.gz
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 <torvalds@linux-foundation.org>
-rw-r--r--equipment.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/equipment.c b/equipment.c
index 4d90741ac..5ff8f0fe6 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)