mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 02:13:24 +00:00
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>
This commit is contained in:
parent
41084817ea
commit
a9709a5e07
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue