Fix error when adding third account. Bug 779048.

Patch courtesy of Rafał Masternak <rafdev@muub.net>
This commit is contained in:
Michael James Gratton 2017-02-23 11:27:39 +11:00
parent 6eac43b2e7
commit d4a95fa287

View file

@ -279,7 +279,7 @@ public class Geary.Engine : BaseObject {
string? last_account = this.accounts.keys.fold<string?>((next, last) => {
string? result = last;
if (next.has_prefix(ID_PREFIX)) {
result = (last == null || strcmp(last, next) > 0) ? next : last;
result = (last == null || strcmp(last, next) < 0) ? next : last;
}
return result;
},