Skip to content

Commit 9da4dbc

Browse files
jeremypwJeremy Woottenzeebok
authored
Silence some warnings (#1488)
* Fix warning on startup * Fix warning on rename * Remove stray pasted text --------- Co-authored-by: Jeremy Wootten <jeremy@Proteus-EL07R6-9b3c42bb.localdomain> Co-authored-by: Ryan Kornheisl <ryan@skarva.tech>
1 parent b2fba80 commit 9da4dbc

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/MainWindow.vala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,7 @@ namespace Scratch {
604604
title = _("%s - %s").printf (doc.get_basename (), base_title);
605605

606606
toolbar.set_document_focus (doc);
607+
607608
folder_manager_view.select_path (doc.file.get_path ());
608609

609610
// Must follow setting focus document for editorconfig plug

src/Widgets/SourceList/SourceList.vala

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,11 @@ public class SourceList : Gtk.ScrolledWindow {
870870
return items.has_key (item);
871871
}
872872

873-
public void update_item (Item item) requires (has_item (item)) {
873+
public void update_item (Item item) {
874+
if (!has_item (item)) {
875+
return;
876+
}
877+
874878
assert (root != null);
875879

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

0 commit comments

Comments
 (0)