From 0fd6907965b94c03e476b3f6333423cfdac00996 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Tue, 19 Feb 2013 13:46:37 -0800 Subject: Obviate the need for explicit 'remember_tree_state/restore_tree_state' calls Instead, just keep track of the expanded state of trips as we get the gtk callbacks for the state changes (which we need to track anyway for the selection logic), and automatically restore the state whenever we re-create the divelist. Signed-off-by: Linus Torvalds Signed-off-by: Dirk Hohndel --- download-dialog.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'download-dialog.c') diff --git a/download-dialog.c b/download-dialog.c index 6237004d9..5d5c1de04 100644 --- a/download-dialog.c +++ b/download-dialog.c @@ -362,7 +362,6 @@ void download_dialog(GtkWidget *w, gpointer data) .devname = NULL, }; - remember_tree_state(); dialog = gtk_dialog_new_with_buttons(_("Download From Dive Computer"), GTK_WINDOW(main_window), GTK_DIALOG_DESTROY_WITH_PARENT, @@ -459,7 +458,6 @@ repeat: break; } gtk_widget_destroy(dialog); - restore_tree_state(); } void update_progressbar(progressbar_t *progress, double value) -- cgit v1.2.3-70-g09d2