From e4648adf1828d8d3812da731ed38f2662c4a1158 Mon Sep 17 00:00:00 2001 From: Jeremy Wootten Date: Thu, 10 Sep 2026 11:11:15 +0100 Subject: [PATCH] Compare path with path --- src/Widgets/DocumentView.vala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Widgets/DocumentView.vala b/src/Widgets/DocumentView.vala index 27a73ff13..7e1bde058 100644 --- a/src/Widgets/DocumentView.vala +++ b/src/Widgets/DocumentView.vala @@ -340,8 +340,7 @@ public class Scratch.Widgets.DocumentView : Gtk.Box { critical ("Invalid document at position %i. %s", n, doc == null ? "Null document" : "Null document file"); continue; } - - if (doc.file.get_uri () == doc_path) { + if (doc.file.get_path () == doc_path) { found = true; break; }