Fix valac criticals at build time

See GNOME/vala#835
This commit is contained in:
Michael Gratton 2019-11-19 14:34:37 +11:00 committed by Michael James Gratton
parent e4cbff8bfa
commit 2b15b49e4f
2 changed files with 2 additions and 2 deletions

View file

@ -813,7 +813,7 @@ public class Application.Client : Gtk.Application {
// likely still loading folders after being
// opened. Add a listener to try again later.
try {
Geary.Account? first = Geary.Collection.first(
Geary.Account? first = Geary.Collection.first<Geary.Account>(
this.engine.get_accounts()
);
if (first != null) {

View file

@ -860,7 +860,7 @@ public class Application.MainWindow :
private Geary.Folder? get_first_inbox() {
Geary.Folder? inbox = null;
try {
Geary.Account? first = Geary.Collection.first(
Geary.Account? first = Geary.Collection.first<Geary.Account>(
this.application.engine.get_accounts()
);
if (first != null) {