diff options
author | Ray Strode <rstrode@redhat.com> | 2015-11-09 12:56:36 -0500 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2015-11-09 13:05:21 -0500 |
commit | 1cc13883d332780e188a12e591c00e36e4501b9e (patch) | |
tree | de46b4cd2aed7a2862d013aa96b3bc5464e46d97 | |
parent | dabc0b730fffa4bcd98b6e102e52319b9b6e12e1 (diff) | |
download | gdm-1cc13883d332780e188a12e591c00e36e4501b9e.tar.gz |
session: always update session type when reading saved session
We previously only did it if the session name was different,
but now it's possible to have sessions of both types with the
same name.
https://bugzilla.gnome.org/show_bug.cgi?id=757715
-rw-r--r-- | daemon/gdm-session.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon/gdm-session.c b/daemon/gdm-session.c index 8a2a97e5..1d0de889 100644 --- a/daemon/gdm-session.c +++ b/daemon/gdm-session.c @@ -913,13 +913,13 @@ worker_on_saved_session_name_read (GdmDBusWorker *worker, return; } + update_session_type (self); + if (strcmp (session_name, get_default_session_name (self)) != 0) { g_free (self->priv->saved_session); self->priv->saved_session = g_strdup (session_name); - update_session_type (self); - if (self->priv->greeter_interface != NULL) { gdm_dbus_greeter_emit_default_session_name_changed (self->priv->greeter_interface, session_name); |