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



commit 19fa600bc678933d798790f8783f3b695c475eb5
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, 13 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 8454a65..5e2eb1e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,16 @@
 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-06-29  Murray Cumming  <murrayc murrayc com>
+
 	Reduce debug output.
 	
 	* glom/libglom/data_structure/glomconversions.[h|cc]: 
diff --git a/glom/frame_glom.cc b/glom/frame_glom.cc
index 0cd1f16..c06cb10 100644
--- a/glom/frame_glom.cc
+++ b/glom/frame_glom.cc
@@ -568,6 +568,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 56850fb..a73e984 100644
--- a/glom/translation/window_translations.cc
+++ b/glom/translation/window_translations.cc
@@ -506,6 +506,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]