Commit 15b7ecfc authored by Christian Hergert's avatar Christian Hergert

hover: fix potential crash with DnD

Fixes #1177
parent 3063850e
Pipeline #211996 passed with stages
in 44 minutes and 6 seconds
......@@ -140,10 +140,12 @@ ide_hover_popover_enter_notify_event_cb (IdeHover *self,
g_assert (IDE_IS_HOVER (self));
g_assert (event != NULL);
g_assert (IDE_IS_HOVER_POPOVER (popover));
g_assert (self->state == IDE_HOVER_STATE_DISPLAY);
self->state = IDE_HOVER_STATE_IN_POPOVER;
/* Possible with DnD dragging? */
if (self->state != IDE_HOVER_STATE_DISPLAY)
return GDK_EVENT_PROPAGATE;
self->state = IDE_HOVER_STATE_IN_POPOVER;
dzl_clear_source (&self->dismiss_source);
return GDK_EVENT_PROPAGATE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment