aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
Diffstat (limited to 'e-util')
-rw-r--r--e-util/gal-view-etable.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/e-util/gal-view-etable.c b/e-util/gal-view-etable.c
index 10ddac2ca8..de73a0204b 100644
--- a/e-util/gal-view-etable.c
+++ b/e-util/gal-view-etable.c
@@ -97,6 +97,9 @@ gal_view_etable_save (GalView *view,
e_table_state_save_to_file (state, filename);
g_object_unref (state);
}
+
+ /* Remember the filename, it may eventually change */
+ gal_view_etable_load (view, filename);
}
static GalView *
@@ -110,6 +113,13 @@ gal_view_etable_clone (GalView *view)
gve = GAL_VIEW_ETABLE (view);
+ /* do this before setting state_filename, to not overwrite current
+ state changes in the 'attach' function */
+ if (gve->priv->table)
+ gal_view_etable_attach_table (GAL_VIEW_ETABLE (clone), gve->priv->table);
+ else if (gve->priv->tree)
+ gal_view_etable_attach_tree (GAL_VIEW_ETABLE (clone), gve->priv->tree);
+
GAL_VIEW_ETABLE (clone)->priv->state_filename =
g_strdup (gve->priv->state_filename);