Commit d496cba8 authored by Paolo Bacchilega's avatar Paolo Bacchilega

fixed message dialog showing a (null) string

parent f148596c
......@@ -70,7 +70,8 @@ _gtk_message_dialog_new (GtkWindow *parent,
GTK_BUTTONS_NONE,
"%s", message);
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), "%s", secondary_message);
if (secondary_message != NULL)
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), "%s", secondary_message);
if (flags & GTK_DIALOG_MODAL)
_gtk_dialog_add_to_window_group (GTK_DIALOG (dialog));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment