mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 23:08:39 +09:00
backport mozbug #546387: fix assert failure in gtk which prints to the console.
This commit is contained in:
parent
8f16d02c34
commit
7e4ac9f3a2
1 changed files with 2 additions and 1 deletions
|
|
@ -214,7 +214,8 @@ nsClipboard::SetData(nsITransferable *aTransferable,
|
|||
GtkTargetEntry *gtkTargets = gtk_target_table_new_from_list(list, &numTargets);
|
||||
|
||||
// Set getcallback and request to store data after an application exit
|
||||
if (gtk_clipboard_set_with_data(gtkClipboard, gtkTargets, numTargets,
|
||||
if (gtkTargets &&
|
||||
gtk_clipboard_set_with_data(gtkClipboard, gtkTargets, numTargets,
|
||||
clipboard_get_cb, clipboard_clear_cb, this))
|
||||
{
|
||||
// We managed to set-up the clipboard so update internal state
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue