[glom] Export: Offer File overwrite confirmation.



commit c4fd5018649882e956a0859926273c234dffea4c
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 fb7ddce..422f462 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>
+
 	* glom/libglom/spawn_with_feedback.cc: ifdef out the debug output.
 
 2009-06-29  Murray Cumming  <murrayc murrayc com>
diff --git a/glom/frame_glom.cc b/glom/frame_glom.cc
index 00089f1..7f06de5 100644
--- a/glom/frame_glom.cc
+++ b/glom/frame_glom.cc
@@ -582,6 +582,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 e96b801..c34ebff 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]