kill warnings
This commit is contained in:
parent
6c12828e31
commit
14053a67a1
1 changed files with 2 additions and 0 deletions
|
@ -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 ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue