Skip to content

Commit

Permalink
Fix warning on rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Wootten authored and Jeremy Wootten committed Nov 25, 2024
1 parent ddd0260 commit 744a0f6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Widgets/SourceList/SourceList.vala
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,11 @@ public class SourceList : Gtk.ScrolledWindow {
return items.has_key (item);
}

public void update_item (Item item) requires (has_item (item)) {
public void update_item (Item item) {
if (!has_item (item)) {
return;
}

assert (root != null);

// Emitting row_changed() for this item's row in the child model causes the filter
Expand Down

0 comments on commit 744a0f6

Please sign in to comment.