Bug 549354 – Crash trying to open a file on a remote folder

2008-08-26  Matthias Clasen  <mclasen@redhat.com>

        Bug 549354 – Crash trying to open a file on a remote folder

        * gtk/gtkfilechooserdefault.c (error_message_with_parent): Handle
        the fact that parent may be NULL without crashing.


svn path=/trunk/; revision=21206
This commit is contained in:
Matthias Clasen
2008-08-27 04:01:53 +00:00
committed by Matthias Clasen
parent 3e04e7d52a
commit 4c6577fb8b
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2008-08-26 Matthias Clasen <mclasen@redhat.com>
Bug 549354 Crash trying to open a file on a remote folder
* gtk/gtkfilechooserdefault.c (error_message_with_parent): Handle
the fact that parent may be NULL without crashing.
2008-08-25 Matthias Clasen <mclasen@redhat.com>
* modules/printbackends/cups/gtkprintbackendcups.c: Replace

View File

@ -990,7 +990,7 @@ error_message_with_parent (GtkWindow *parent,
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
"%s", detail);
if (parent->group)
if (parent && parent->group)
gtk_window_group_add_window (parent->group, GTK_WINDOW (dialog));
gtk_dialog_run (GTK_DIALOG (dialog));