aboutsummaryrefslogtreecommitdiff
path: root/libdino/src/service/database.vala
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2018-11-24 21:00:44 +0100
committerfiaxh <git@lightrise.org>2018-11-24 14:05:03 -0600
commit22340cb88e056211cd2e08036e7a1982e37c391b (patch)
treee35a39662c7292ad01f3a1ba64a7089e674a4b6a /libdino/src/service/database.vala
parentc44489214e040f48042d27254d4c18a78e343049 (diff)
downloaddino-22340cb88e056211cd2e08036e7a1982e37c391b.tar.gz
dino-22340cb88e056211cd2e08036e7a1982e37c391b.zip
Always use Account.hash(equals)_func for HashMap+ArrayList
Diffstat (limited to 'libdino/src/service/database.vala')
-rw-r--r--libdino/src/service/database.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdino/src/service/database.vala b/libdino/src/service/database.vala
index e5ddd0f2..025a97fa 100644
--- a/libdino/src/service/database.vala
+++ b/libdino/src/service/database.vala
@@ -268,7 +268,7 @@ public class Database : Qlite.Database {
}
public ArrayList<Account> get_accounts() {
- ArrayList<Account> ret = new ArrayList<Account>();
+ ArrayList<Account> ret = new ArrayList<Account>(Account.equals_func);
foreach(Row row in account.select()) {
Account account = new Account.from_row(this, row);
ret.add(account);