Commit 7214f4d4 authored by Timm Bäder's avatar Timm Bäder 👎 Committed by Daniel Boles

scrolledwindow: Avoid critical when removing source

Make sure indicator->conceil_timer is actually set before trying to
remove it.
parent d9a9530f
......@@ -4192,7 +4192,8 @@ indicator_set_fade (Indicator *indicator,
gdk_window_show (indicator->window);
indicator->conceil_timer = g_timeout_add (INDICATOR_FADE_OUT_TIME, maybe_hide_indicator, indicator);
if (!visible && gdk_window_is_visible (indicator->window))
if (!visible && gdk_window_is_visible (indicator->window) &&
indicator->conceil_timer != 0)
gdk_window_hide (indicator->window);
g_source_remove (indicator->conceil_timer);
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