Mercurial > geeqie
comparison src/dupe.c @ 803:764fd82dd099
better check for notify type
author | nadvornik |
---|---|
date | Sun, 08 Jun 2008 19:09:44 +0000 |
parents | 03614b7883ea |
children | 9bd49e725ad3 |
comparison
equal
deleted
inserted
replaced
802:3cfc54c77b30 | 803:764fd82dd099 |
---|---|
3564 | 3564 |
3565 static void dupe_notify_cb(FileData *fd, NotifyType type, gpointer data) | 3565 static void dupe_notify_cb(FileData *fd, NotifyType type, gpointer data) |
3566 { | 3566 { |
3567 DupeWindow *dw = data; | 3567 DupeWindow *dw = data; |
3568 | 3568 |
3569 if (!fd->change) return; | 3569 if (type != NOTIFY_TYPE_CHANGE || !fd->change) return; |
3570 | 3570 |
3571 switch(fd->change->type) | 3571 switch(fd->change->type) |
3572 { | 3572 { |
3573 case FILEDATA_CHANGE_MOVE: | 3573 case FILEDATA_CHANGE_MOVE: |
3574 case FILEDATA_CHANGE_RENAME: | 3574 case FILEDATA_CHANGE_RENAME: |