Skip to content

Commit 5ed2be7

Browse files
authored
Compare path with path (#1820)
1 parent f80c82d commit 5ed2be7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎src/Widgets/DocumentView.vala‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,7 @@ public class Scratch.Widgets.DocumentView : Gtk.Box {
340340
critical ("Invalid document at position %i. %s", n, doc == null ? "Null document" : "Null document file");
341341
continue;
342342
}
343-
344-
if (doc.file.get_uri () == doc_path) {
343+
if (doc.file.get_path () == doc_path) {
345344
found = true;
346345
break;
347346
}

0 commit comments

Comments
 (0)