[gnome-shell] Revert "loginDialog: Don't arbitrarily pick a random session for the user"



commit e5270cb6ec3cb67d3254127e3f39d2c94850a2e9
Author: Ray Strode <rstrode redhat com>
Date:   Wed Mar 18 12:44:19 2015 -0400

    Revert "loginDialog: Don't arbitrarily pick a random session for the user"
    
    This reverts commit 6d40cb98e7e7a24f66662f0a06ecf8e93ed5dea2.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=740142

 js/gdm/loginDialog.js |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js
index aaf55f3..8da1b55 100644
--- a/js/gdm/loginDialog.js
+++ b/js/gdm/loginDialog.js
@@ -354,6 +354,9 @@ const SessionMenuButton = new Lang.Class({
             this._menu.addMenuItem(item);
             this._items[id] = item;
 
+            if (!this._activeSessionId)
+                this.setActiveSession(id);
+
             item.connect('activate', Lang.bind(this, function() {
                 this.setActiveSession(id);
             }));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]