summaryrefslogtreecommitdiffstats
path: root/gtk-gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk-gui.c')
-rw-r--r--gtk-gui.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk-gui.c b/gtk-gui.c
index 96dbfa320..292a3c77d 100644
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -1633,6 +1633,7 @@ void import_files(GtkWidget *w, gpointer data)
struct stat sb;
GSList *filenames = NULL;
+ remember_tree_state();
fs_dialog = gtk_file_chooser_dialog_new(_("Choose XML Files To Import Into Current Data File"),
GTK_WINDOW(main_window),
GTK_FILE_CHOOSER_ACTION_OPEN,
@@ -1671,6 +1672,7 @@ void import_files(GtkWidget *w, gpointer data)
free(current_def_dir);
gtk_widget_destroy(fs_dialog);
+ restore_tree_state();
}
static GError *setup_uemis_import(device_data_t *data)
@@ -1738,6 +1740,7 @@ 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,
@@ -1834,6 +1837,7 @@ repeat:
break;
}
gtk_widget_destroy(dialog);
+ restore_tree_state();
}
void update_progressbar(progressbar_t *progress, double value)