[gnome-latex] DocumentTab: do not use tepl_file_is_local()
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-latex] DocumentTab: do not use tepl_file_is_local()
- Date: Mon, 18 May 2020 12:52:54 +0000 (UTC)
commit bd7689a0bf5e4d94eeea20da1d6544defc359c26
Author: Sébastien Wilmet <swilmet gnome org>
Date: Mon May 18 14:45:43 2020 +0200
DocumentTab: do not use tepl_file_is_local()
tepl_file_is_local() will be removed, maybe just temporarily.
src/document_tab.vala | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/document_tab.vala b/src/document_tab.vala
index 7ca7215..a42bda3 100644
--- a/src/document_tab.vala
+++ b/src/document_tab.vala
@@ -156,7 +156,10 @@ public class DocumentTab : Tepl.Tab
return false;
// if file was never saved or is remote we do not check
- if (!get_buffer ().get_file ().is_local ())
+ File? location = get_buffer ().get_file ().get_location ();
+ if (location == null)
+ return false;
+ if (!location.has_uri_scheme ("file"))
return false;
if (document.is_externally_modified ())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]