[latexila] Adapt code to support again remote files



commit 8977f34d5954fd8088abc6c6f385450159011477
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Fri Dec 18 14:10:06 2015 +0100

    Adapt code to support again remote files
    
    https://bugzilla.gnome.org/show_bug.cgi?id=759509

 src/main_window.vala      |    2 ++
 src/main_window_file.vala |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/main_window.vala b/src/main_window.vala
index 225991a..2c48c92 100644
--- a/src/main_window.vala
+++ b/src/main_window.vala
@@ -855,6 +855,8 @@ public class MainWindow : Window
             _("_Save"), ResponseType.ACCEPT
         );
 
+        file_chooser.set_local_only (false);
+
         if (doc.location == null)
             file_chooser.set_current_name (doc.tab.label_text + ".tex");
         else
diff --git a/src/main_window_file.vala b/src/main_window_file.vala
index 7401dff..52312dc 100644
--- a/src/main_window_file.vala
+++ b/src/main_window_file.vala
@@ -165,6 +165,7 @@ public class MainWindowFile
         else if (_main_window.default_location != null)
             file_chooser.set_current_folder (_main_window.default_location);
 
+        file_chooser.set_local_only (false);
         file_chooser.select_multiple = true;
 
         // Filter: by default show only .tex and .bib files


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]