From 60e9c1ebda68d3fb18c786a94b0e361f6493ccb0 Mon Sep 17 00:00:00 2001 From: "Patrick C. McGinty" Date: Sun, 20 Mar 2011 16:47:29 -1000 Subject: Fix 'Preserve Modification Time' option for FLAC files. Resolve condition when 'preserve modification time' feature is disabled, FLAC files would not have their modification times changed. Secondly, it disables easytag from incorrectly warning the user that the file was changed by an external program, when easytag writes the file. --- src/et_core.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/et_core.c') diff --git a/src/et_core.c b/src/et_core.c index 567a4bf..d8d1930 100644 --- a/src/et_core.c +++ b/src/et_core.c @@ -3718,6 +3718,11 @@ gboolean ET_Save_File_Tag_To_HD (ET_File *ETFile) } } + // update the stored file modification time to prevent easytag + // from warning that an external program has changed the file + if ( stat(cur_filename,&statbuf)!=-1 ) + ETFile->FileModificationTime = statbuf.st_mtime; + if (state==TRUE) { -- cgit v1.2.3