diff options
Diffstat (limited to 'lib/widgets/ephy-editable-toolbar.c')
-rwxr-xr-x | lib/widgets/ephy-editable-toolbar.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/widgets/ephy-editable-toolbar.c b/lib/widgets/ephy-editable-toolbar.c index 799eec2d9..98b9afd47 100755 --- a/lib/widgets/ephy-editable-toolbar.c +++ b/lib/widgets/ephy-editable-toolbar.c @@ -225,11 +225,14 @@ drag_data_received_cb (GtkWidget *widget, } action = ephy_editable_toolbar_get_action (etoolbar, type, selection_data->data); - ephy_toolbars_group_add_item (etoolbar->priv->group, parent, sibling, - action->name); + if (action) + { + ephy_toolbars_group_add_item (etoolbar->priv->group, parent, sibling, + action->name); - etoolbar->priv->toolbars_dirty = TRUE; - queue_ui_update (etoolbar); + etoolbar->priv->toolbars_dirty = TRUE; + queue_ui_update (etoolbar); + } } static void |