aboutsummaryrefslogtreecommitdiffstats
path: root/mail/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/session.c')
-rw-r--r--mail/session.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/mail/session.c b/mail/session.c
index b76e096abb..2d5a01a9d2 100644
--- a/mail/session.c
+++ b/mail/session.c
@@ -45,14 +45,9 @@ mail_request_dialog (const char *prompt, gboolean secret, const char *key,
request_callback, &ans, NULL);
if (!dialog)
return NULL;
- GDK_THREADS_ENTER ();
- if (gnome_dialog_run_and_close (GNOME_DIALOG (dialog)) == -1 ||
- ans == NULL) {
- GDK_THREADS_LEAVE ();
+ if (mail_dialog_run_and_close (GNOME_DIALOG (dialog)) == -1 ||
+ ans == NULL)
return NULL;
- }
-
- GDK_THREADS_LEAVE ();
} else {
if (!mail_op_get_password ((char *) prompt, secret, &ans))
return NULL;