Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,7 @@ namespace Scratch {
title = _("%s - %s").printf (doc.get_basename (), base_title);

toolbar.set_document_focus (doc);

folder_manager_view.select_path (doc.file.get_path ());

// Must follow setting focus document for editorconfig plug
Expand Down
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