[gnumeric] update modification time only when we in fact modified the file.
- From: Andreas J. Guelzow <guelzow src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnumeric] update modification time only when we in fact modified the file.
- Date: Wed, 9 Dec 2009 20:39:05 +0000 (UTC)
commit 191eabafb591dd30610a5410f2b40dc4f064b2de
Author: Andreas J. Guelzow <aguelzow math concordia ab ca>
Date: Wed Dec 9 13:38:19 2009 -0700
update modification time only when we in fact modified the file.
2009-12-09 Andreas J. Guelzow <aguelzow pyrshep ca>
* src/workbook-view.c (wbv_save_to_output): update modification time
only when we in fact modified the file.
ChangeLog | 13 +++++++++----
src/workbook-view.c | 6 ++++--
2 files changed, 13 insertions(+), 6 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 084a4cc..b0dec14 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,9 +1,14 @@
2009-12-09 Andreas J. Guelzow <aguelzow pyrshep ca>
+
+ * src/workbook-view.c (wbv_save_to_output): update modification time
+ only when we in fact modified the file.
+
+2009-12-09 Andreas J. Guelzow <aguelzow pyrshep ca>
- * gutils.c (gnm_insert_meta_date): new
- * gutils.h (gnm_insert_meta_date): new
- * workbook-view.c (wbv_save_to_output): update modification time
- * workbook.c (workbook_new): update creation date
+ * src/gutils.c (gnm_insert_meta_date): new
+ * src/gutils.h (gnm_insert_meta_date): new
+ * src/workbook-view.c (wbv_save_to_output): update modification time
+ * src/workbook.c (workbook_new): update creation date
2009-12-06 Jean Brefort <jean brefort normalesup org>
diff --git a/src/workbook-view.c b/src/workbook-view.c
index 826fc0f..8b62300 100644
--- a/src/workbook-view.c
+++ b/src/workbook-view.c
@@ -966,9 +966,11 @@ wbv_save_to_output (WorkbookView *wbv, GOFileSaver const *fs,
{
GError const *err;
char const *msg;
+ GODoc *godoc = wb_view_get_doc (wbv);
- /* FIXME: we should be using the true modification time */
- gnm_insert_meta_date (GO_DOC (wbv->wb), GSF_META_NAME_DATE_MODIFIED);
+ if (go_doc_is_dirty (godoc))
+ /* FIXME: we should be using the true modification time */
+ gnm_insert_meta_date (godoc, GSF_META_NAME_DATE_MODIFIED);
go_file_saver_save (fs, io_context, wbv, output);
/* The plugin convention is unclear */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]