Mercurial > hg > forks > geeqie
changeset 940:4cf4febc497f
fixed invalid warning on running editors
author | Vladimir Nadvornik <nadvornik@suse.cz> |
---|---|
date | Sat, 26 Jul 2008 22:26:08 +0000 |
parents | 6f813ce1d9a9 |
children | 466ca4af54d2 |
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);