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
This commit is contained in:
Owen W. Taylor 2009-08-18 18:02:53 -04:00
parent 6f94b8cffe
commit d116f707c5

View File

@ -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;