mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Update the dive units without destroyng and rebuilding the dive list
Just iterate over the dive list entries, updating them one by one. This avoids the "selection destroyed" when the dive units are changed. And it's cleaner anyway. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
19dd61b126
commit
7bbcf2fabd
3 changed files with 86 additions and 53 deletions
2
main.c
2
main.c
|
@ -295,8 +295,8 @@ static void unit_dialog(GtkWidget *w, gpointer data)
|
|||
result = gtk_dialog_run(GTK_DIALOG(dialog));
|
||||
if (result == GTK_RESPONSE_ACCEPT) {
|
||||
output_units = menu_units;
|
||||
update_dive_list_units(&dive_list);
|
||||
repaint_dive();
|
||||
dive_list_update_dives(dive_list);
|
||||
}
|
||||
gtk_widget_destroy(dialog);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue