preserve histmap on NOTIFY_CHANGE
authorVladimir Nadvornik <nadvornik@suse.cz>
Sun, 13 Sep 2009 12:33:11 +0000 (12:33 +0000)
committerVladimir Nadvornik <nadvornik@suse.cz>
Sun, 13 Sep 2009 12:33:11 +0000 (12:33 +0000)
src/histogram.c

index 0c4a7df..3fdb091 100644 (file)
@@ -380,7 +380,7 @@ gboolean histogram_draw(Histogram *histogram, const HistMap *histmap, GdkPixbuf
 
 void histogram_notify_cb(FileData *fd, NotifyType type, gpointer data)
 {
-       if ((type & (NOTIFY_CHANGE | NOTIFY_REREAD)) && fd->histmap)
+       if ((type & NOTIFY_REREAD) && fd->histmap)
                {
                DEBUG_1("Notify histogram: %s %04x", fd->path, type);
                histmap_free(fd->histmap);