aboutsummaryrefslogtreecommitdiff
path: root/src/greeter-list.vala
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2014-12-01 12:58:25 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2014-12-01 12:58:25 +0100
commit5328fc22e4f383136392b0859e24431eec85c554 (patch)
tree9eceeff801e02c81f93857c99e1ce6a0511540a8 /src/greeter-list.vala
parent5a726a42fa5aaeb706e1c28682c5db6ffe58e2d9 (diff)
downloadarctica-greeter-5328fc22e4f383136392b0859e24431eec85c554.tar.gz
arctica-greeter-5328fc22e4f383136392b0859e24431eec85c554.tar.bz2
arctica-greeter-5328fc22e4f383136392b0859e24431eec85c554.zip
Show Remote Login box if no other boxes (usernames, other login, guest login) are to be shown.
Diffstat (limited to 'src/greeter-list.vala')
-rw-r--r--src/greeter-list.vala2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/greeter-list.vala b/src/greeter-list.vala
index dee584f..add5c3a 100644
--- a/src/greeter-list.vala
+++ b/src/greeter-list.vala
@@ -462,6 +462,8 @@ public abstract class GreeterList : FadableBox
/* Select another entry if the selected one was removed */
if (entry == selected_entry)
{
+ if (entries.length () == 1)
+ index = 0;
if (index >= entries.length () && index > 0)
index--;
else if (index < entries.length ())