diff options
author | Milan Crha <mcrha@redhat.com> | 2014-02-04 21:30:09 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2014-02-04 21:30:09 +0800 |
commit | 0b780cb9ad879bd57a2374e07454245f288452c3 (patch) | |
tree | c3acdc8bd44af60325aeeae15d28e4509354ebf8 | |
parent | e81fab3f805f8a31f452259d10ec65b57023c73e (diff) | |
download | gsoc2013-evolution-0b780cb9ad879bd57a2374e07454245f288452c3.tar gsoc2013-evolution-0b780cb9ad879bd57a2374e07454245f288452c3.tar.gz gsoc2013-evolution-0b780cb9ad879bd57a2374e07454245f288452c3.tar.bz2 gsoc2013-evolution-0b780cb9ad879bd57a2374e07454245f288452c3.tar.lz gsoc2013-evolution-0b780cb9ad879bd57a2374e07454245f288452c3.tar.xz gsoc2013-evolution-0b780cb9ad879bd57a2374e07454245f288452c3.tar.zst gsoc2013-evolution-0b780cb9ad879bd57a2374e07454245f288452c3.zip |
Bug #721639 - Cannot overwrite builtin mail view definitions
-rw-r--r-- | e-util/gal-view-etable.c | 10 |
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); |