diff options
Diffstat (limited to 'mail/mail-component.c')
-rw-r--r-- | mail/mail-component.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mail/mail-component.c b/mail/mail-component.c index 04198ecfb6..9237a1793d 100644 --- a/mail/mail-component.c +++ b/mail/mail-component.c @@ -699,8 +699,15 @@ impl_createView (PortableServer_Servant servant, em_folder_tree_enable_drag_and_drop ((EMFolderTree *) tree_widget); if ((uri = em_folder_tree_model_get_selected (priv->model))) { + gboolean expanded; + + expanded = em_folder_tree_model_get_expanded_uri (priv->model, uri); em_folder_tree_set_selected ((EMFolderTree *) tree_widget, uri, FALSE); em_folder_view_set_folder_uri ((EMFolderView *) view_widget, uri); + + if (!expanded) + em_folder_tree_model_set_expanded_uri (priv->model, uri, expanded); + g_free (uri); } |