From d116f707c5e4b4e3f07ff5ae3db162b01b1ca11e Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Tue, 18 Aug 2009 18:02:53 -0400 Subject: [PATCH] Clear save_id when removing idle_save_application_usage() When we remove the timeout for saving application usage when application usage is disabled, set the save_id member variable to 0. http://bugzilla.gnome.org/show_bug.cgi?id=589676 --- src/shell-app-monitor.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/shell-app-monitor.c b/src/shell-app-monitor.c index 453a5f536..a6409574a 100644 --- a/src/shell-app-monitor.c +++ b/src/shell-app-monitor.c @@ -1657,7 +1657,10 @@ update_enable_monitoring (ShellAppMonitor *monitor) { monitor->watched_window = NULL; if (monitor->save_id) - g_source_remove (monitor->save_id); + { + g_source_remove (monitor->save_id); + monitor->save_id = 0; + } } monitor->enable_monitoring = enable;