quartz: don't call a NULL get_func() in gtk_clipboard_store()

Assume the clipboard is not set and bail out silently (bug #626499).
This commit is contained in:
Michael Natterer 2012-12-20 23:37:06 +01:00
parent e3e055f855
commit f1c105b94f

View File

@ -1047,7 +1047,7 @@ gtk_clipboard_store (GtkClipboard *clipboard)
g_return_if_fail (GTK_IS_CLIPBOARD (clipboard));
if (!clipboard->target_list)
if (!clipboard->target_list || !clipboard->get_func)
return;
/* We simply store all targets into the OS X clipboard. We should be