[latexila] MainWindow: save dialog: use get_short_name()



commit 9b1ec25f15ad1f27cdf9a42539e35691543c0251
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sun Aug 6 16:52:04 2017 +0200

    MainWindow: save dialog: use get_short_name()

 src/main_window.vala |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/main_window.vala b/src/main_window.vala
index b8f5750..93de1d0 100644
--- a/src/main_window.vala
+++ b/src/main_window.vala
@@ -875,10 +875,11 @@ public class MainWindow : ApplicationWindow
         file_chooser.set_do_overwrite_confirmation (true);
         file_chooser.set_local_only (false);
 
+        string short_name = doc.get_file ().get_short_name ();
         if (doc.location == null)
-            file_chooser.set_current_name (doc.tab.label_text + ".tex");
+            file_chooser.set_current_name (short_name + ".tex");
         else
-            file_chooser.set_current_name (doc.tab.label_text);
+            file_chooser.set_current_name (short_name);
 
         if (this.default_location != null)
             file_chooser.set_current_folder (this.default_location);


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