[glom/glom-1-8] Export: Offer File overwrite confirmation.



commit bd2d0d0ab3c736cff37b141d3f1ffb350fa83763
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Jun 29 12:33:36 2009 +0200

    Export: Offer File overwrite confirmation.
    
    * glom/frame_glom.cc: on_menu_file_export():
    * glom/translation/window_translations.cc: on_button_export():
    Call Gtk::FileChooser::set_do_overwrite_confirmation() so the user is
    warned when overwriting a file.
    Ubuntu Launchpad bug https://bugs.launchpad.net/ubuntu/+source/glom/+bug/393229
    (elmergato)

 ChangeLog                               |   11 ++++++++++-
 glom/frame_glom.cc                      |    1 +
 glom/translation/window_translations.cc |    1 +
 3 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 9480889..6c6198d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,13 @@
-1.8.9:
+2009-06-29  Murray Cumming  <murrayc murrayc com>
+
+	Export: Offer File overwrite confirmation.
+	
+	* glom/frame_glom.cc: on_menu_file_export():
+	* glom/translation/window_translations.cc: on_button_export(): 
+	Call Gtk::FileChooser::set_do_overwrite_confirmation() so the user is 
+	warned when overwriting a file.
+	Ubuntu Launchpad bug https://bugs.launchpad.net/ubuntu/+source/glom/+bug/393229
+	(elmergato)
 
 2009-05-25  Armin Burgmeier  <armin openismus com>
 
diff --git a/glom/frame_glom.cc b/glom/frame_glom.cc
index 2da96c8..3cf0c63 100644
--- a/glom/frame_glom.cc
+++ b/glom/frame_glom.cc
@@ -547,6 +547,7 @@ void Frame_Glom::on_menu_file_export()
 
   //Ask the user for the new file location, and to optionally modify the format:
   FileChooser_Export dialog;
+  dialog.set_do_overwrite_confirmation();
   dialog.set_export_layout(mapGroupSequence, m_table_name, get_document());
   const int response = dialog.run();
   dialog.hide();
diff --git a/glom/translation/window_translations.cc b/glom/translation/window_translations.cc
index d448d95..90998e2 100644
--- a/glom/translation/window_translations.cc
+++ b/glom/translation/window_translations.cc
@@ -500,6 +500,7 @@ void Window_Translations::on_button_export()
   
   //Show the file-chooser dialog, to select an output .po file:
   Gtk::FileChooserDialog file_dlg(_("Choose .po File Name"), Gtk::FILE_CHOOSER_ACTION_SAVE);
+  file_dlg.set_do_overwrite_confirmation();
   
   // Only po files
   Gtk::FileFilter filter;



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