aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/et_core.c
diff options
context:
space:
mode:
authorGravatar Alex Bennee <alex@bennee.com>2010-07-14 15:58:03 +0100
committerGravatar Alex Bennee <alex@bennee.com>2010-07-14 15:58:03 +0100
commit56302086c9c0d6af537d7603a7c63fb3606945f5 (patch)
tree9ef30907a5a04d1a1d966f425c4a4f9d0fe9d9fc /src/et_core.c
parentba15707b292d827bdce732e7713b26fae3f75c74 (diff)
EasyTag 2.1.2
Diffstat (limited to 'src/et_core.c')
-rwxr-xr-xsrc/et_core.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/et_core.c b/src/et_core.c
index 3e608f3..3240088 100755
--- a/src/et_core.c
+++ b/src/et_core.c
@@ -3624,7 +3624,7 @@ gboolean ET_Save_File_Tag_To_HD (ET_File *ETFile)
ETFileDescription = ETFile->ETFileDescription;
- // Save permissions of the file (cause they may change with files on NFS)
+ // Save permissions and dates of the file (cause they may change with files on NFS)
if ( stat(cur_filename,&statbuf)!=-1 )
file_set_properties = TRUE;
else
@@ -3685,6 +3685,17 @@ gboolean ET_Save_File_Tag_To_HD (ET_File *ETFile)
if (state==TRUE)
{
+
+ // Update date and time of the parent directory of the file after changing the tag
+ // value (ex: needed for Amarok for refreshing). Note that when renaming a file the
+ // parent directory is automatically updated.
+ if (UPDATE_PARENT_DIRECTORY_MODIFICATION_TIME)
+ {
+ gchar *path = g_path_get_dirname(cur_filename);
+ utime(g_path_get_dirname(cur_filename),NULL);
+ g_free(path);
+ }
+
ET_Mark_File_Tag_As_Saved(ETFile);
return TRUE;
}else