aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r--src/ephy-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 42808fa86..538d6eddc 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -1611,7 +1611,7 @@ embed_popup_deactivate_cb (GtkWidget *popup,
/* Unref the event from idle since we still need it
* from the action callbacks which will run before idle.
*/
- if (priv->idle_worker == 0)
+ if (priv->idle_worker == 0 && priv->context_event != NULL)
{
priv->idle_worker =
g_idle_add ((GSourceFunc) idle_unref_context_event, window);