Fix problem with non-reentrant journal driver
[pspp] / src / ui / gui / psppire-dialog.c
index 2f5087f245d3c0e277e5f9f4c6154336b4ae860b..d89b3b4ec288f8d9f00fd812a15f72f9d4b49202 100644 (file)
@@ -474,6 +474,12 @@ connect_notify_signal (GtkWidget *w, gpointer data)
 gint
 psppire_dialog_run (PsppireDialog *dialog)
 {
+  gchar *title = NULL;
+  g_object_get (dialog, "title", &title, NULL);
+
+  if (title == NULL)
+    g_warning ("PsppireDialog %s has no title", gtk_widget_get_name (GTK_WIDGET (dialog)));
+  
   if ( dialog->contents_are_valid != NULL )
     gtk_container_foreach (GTK_CONTAINER (dialog->box),
                           connect_notify_signal,