kill warnings

This commit is contained in:
Erica Z 2024-10-16 12:04:58 +02:00
parent 6c12828e31
commit 14053a67a1

View file

@ -154,6 +154,7 @@ public class PlayQueueSelection : GLib.Object, GLib.ListModel, Gtk.SelectionMode
// GLib.ListModel methods // GLib.ListModel methods
Object? get_item (uint position) { Object? get_item (uint position) {
if (this.model == null) return null;
return this.model.get_item (position); return this.model.get_item (position);
} }
@ -162,6 +163,7 @@ public class PlayQueueSelection : GLib.Object, GLib.ListModel, Gtk.SelectionMode
} }
uint get_n_items () { uint get_n_items () {
if (this.model == null) return 0;
return this.model.get_n_items (); return this.model.get_n_items ();
} }
} }