From 4993d81486d703d093970ce3ee1511af6108f0fd Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 3 May 2010 22:36:26 +0200 Subject: Bug #593890 - New folder window is not in focus in filter dialog --- mail/em-folder-utils.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mail') diff --git a/mail/em-folder-utils.c b/mail/em-folder-utils.c index c840644870..ad1b929e9d 100644 --- a/mail/em-folder-utils.c +++ b/mail/em-folder-utils.c @@ -672,7 +672,11 @@ em_folder_utils_create_folder (CamelFolderInfo *folderinfo, EMFolderTree *emft, if (folderinfo != NULL) em_folder_selector_set_selected ((EMFolderSelector *) dialog, folderinfo->uri); g_signal_connect (dialog, "response", G_CALLBACK (emfu_popup_new_folder_response), emft); - gtk_widget_show (dialog); + + if (!parent || !GTK_IS_DIALOG (parent)) + gtk_widget_show (dialog); + else + gtk_dialog_run (GTK_DIALOG (dialog)); } struct _folder_unsub_t { -- cgit v1.2.3