aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-06-16 14:18:39 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-06-16 14:24:59 +0200
commit2bf440e7159bbd1d89e2c50ea9781cd8fdef7591 (patch)
tree1bc73e5fd6cb497ab6a34b221ab4a9c548712558
parentde6ec89f7360b29391fecddc613013a2a9994f71 (diff)
downloadarctica-greeter-2bf440e7159bbd1d89e2c50ea9781cd8fdef7591.tar.gz
arctica-greeter-2bf440e7159bbd1d89e2c50ea9781cd8fdef7591.tar.bz2
arctica-greeter-2bf440e7159bbd1d89e2c50ea9781cd8fdef7591.zip
src/session-list.vala: Regression fix for failing session logins caused by eece8599b774b4b30eeb31a39bc7c3c36d24b011.
-rw-r--r--src/session-list.vala7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/session-list.vala b/src/session-list.vala
index ffb50f4..770186d 100644
--- a/src/session-list.vala
+++ b/src/session-list.vala
@@ -27,11 +27,10 @@ public class SessionPrompt : PromptBox
Object (id: id, session: session, default_session: default_session);
}
- private GLib.List<LightDM.Session> sessions_sorted_ci (GLib.List<LightDM.Session> sessions)
+ private unowned GLib.List<LightDM.Session> sessions_sorted_ci (GLib.List<LightDM.Session> sessions)
{
- var ci_sorted_sessions = sessions.copy();
- ci_sorted_sessions.sort_with_data((a, b) => GLib.strcmp (a.name.casefold(), b.name.casefold()));
- return ci_sorted_sessions;
+ sessions.sort_with_data((a, b) => GLib.strcmp (a.name.casefold(), b.name.casefold()));
+ return sessions;
}
private ToggleBox box;