Commit b179a0d2 authored by Vincent Untz's avatar Vincent Untz Committed by Vincent Untz

only call SmsSaveComplete() if we are still in a SaveYourself state. My

2009-04-08  Vincent Untz  <vuntz@gnome.org>

	* gnome-session/gsm-xsmp-client.c: (save_yourself_done_callback): only
	call SmsSaveComplete() if we are still in a SaveYourself state. My
	previous change about this didn't take into account the case where the
	logout is cancelled, in which case SmsSaveComplete() shouldn't be
	called.

svn path=/trunk/; revision=5373
parent 58b0fe2a
2009-04-08 Vincent Untz <vuntz@gnome.org>
* gnome-session/gsm-xsmp-client.c: (save_yourself_done_callback): only
call SmsSaveComplete() if we are still in a SaveYourself state. My
previous change about this didn't take into account the case where the
logout is cancelled, in which case SmsSaveComplete() shouldn't be
called.
2009-04-05 Matthias Clasen <mclasen@redhat.com>
* gnome-session/gs-idle-monitor.c (handle_alarm_notify_event): Ignore
......
......@@ -1237,8 +1237,10 @@ save_yourself_done_callback (SmsConn conn,
client->priv->description,
success ? "True" : "False");
client->priv->current_save_yourself = -1;
SmsSaveComplete (client->priv->conn);
if (client->priv->current_save_yourself != -1) {
SmsSaveComplete (client->priv->conn);
client->priv->current_save_yourself = -1;
}
/* If success is false then the application couldn't save data. Nothing
* the session manager can do about, though. FIXME: we could display a
......
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