Mercurial > geeqie.yaz
changeset 940:77e6f7530c88
fixed invalid warning on running editors
author | nadvornik |
---|---|
date | Sat, 26 Jul 2008 22:26:08 +0000 |
parents | b2454218a995 |
children | 36906129bbec |
files | src/filedata.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/filedata.c Sat Jul 26 20:34:24 2008 +0000 +++ b/src/filedata.c Sat Jul 26 22:26:08 2008 +0000 @@ -1620,7 +1620,8 @@ DEBUG_1("Change checked: source and destination have different extensions: %s -> %s", fd->path, fd->change->dest); } - if (strcmp(fd->path, fd->change->dest) == 0) + if (fd->change->type != FILEDATA_CHANGE_UNSPECIFIED && /* FIXME this is now needed for running editors */ + strcmp(fd->path, fd->change->dest) == 0) { ret |= CHANGE_WARN_SAME; DEBUG_1("Change checked: source and destination is the same: %s -> %s", fd->path, fd->change->dest);