From 6695ba892a25615309c2c432a9abc82105c9118d Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Fri, 9 Mar 2012 11:14:08 +0100 Subject: Bug #664205 - Improve UX when creating a new mail folder --- mail/em-folder-selector.c | 3 ++- mail/em-folder-utils.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'mail') diff --git a/mail/em-folder-selector.c b/mail/em-folder-selector.c index 18172cb7a5..8b6878caa4 100644 --- a/mail/em-folder-selector.c +++ b/mail/em-folder-selector.c @@ -189,7 +189,8 @@ emfs_response (GtkWidget *dialog, session = em_folder_tree_get_session (folder_tree); em_folder_utils_create_folder ( - GTK_WINDOW (dialog), session, folder_tree, NULL); + GTK_WINDOW (dialog), session, folder_tree, + em_folder_selector_get_selected_uri (emfs)); g_signal_stop_emission_by_name (emfs, "response"); } diff --git a/mail/em-folder-utils.c b/mail/em-folder-utils.c index 5d8c258626..5264d1d671 100644 --- a/mail/em-folder-utils.c +++ b/mail/em-folder-utils.c @@ -532,7 +532,7 @@ new_folder_created_cb (CamelStore *store, /* XXX What in the hell kind of lazy hack is this? */ data = g_object_get_data ( G_OBJECT (context->folder_tree), "select"); - expand_only = GPOINTER_TO_INT (data) ? TRUE : FALSE; + expand_only = GPOINTER_TO_INT (data) ? FALSE : TRUE; em_folder_tree_set_selected ( context->folder_tree, -- cgit v1.2.3