diff options
Diffstat (limited to 'mail/mail-send-recv.c')
-rw-r--r-- | mail/mail-send-recv.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c index 39fc67e614..7f7c99724d 100644 --- a/mail/mail-send-recv.c +++ b/mail/mail-send-recv.c @@ -622,7 +622,9 @@ build_dialog (GtkWindow *parent, } gtk_widget_show_all (table); - gtk_widget_show (GTK_WIDGET (gd)); + + if (parent != NULL) + gtk_widget_show (GTK_WIDGET (gd)); g_signal_connect (gd, "response", G_CALLBACK (dialog_response), data); @@ -932,9 +934,9 @@ mail_send_receive (GtkWindow *parent) GList *scan; if (send_recv_dialog != NULL) { - if (GTK_WIDGET_REALIZED(send_recv_dialog)) { - gdk_window_show(send_recv_dialog->window); - gdk_window_raise(send_recv_dialog->window); + if (parent != NULL && GTK_WIDGET_REALIZED (send_recv_dialog)) { + gdk_window_show (send_recv_dialog->window); + gdk_window_raise (send_recv_dialog->window); } return send_recv_dialog; } |