diff options
Diffstat (limited to 'mail/session.c')
-rw-r--r-- | mail/session.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mail/session.c b/mail/session.c index 9f9072e93f..161536022e 100644 --- a/mail/session.c +++ b/mail/session.c @@ -45,9 +45,14 @@ 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) + ans == NULL) { + GDK_THREADS_LEAVE (); return NULL; + } + + GDK_THREADS_LEAVE (); } else { if (!mail_op_get_password ((char *) prompt, secret, &ans)) return NULL; |