diff src/histogram.c @ 1432:cf4029d10d38

improved notification system
author nadvornik
date Sat, 14 Mar 2009 17:21:35 +0000
parents 7e180091e0b7
children 2441a90c4bcf
line wrap: on
line diff
--- a/src/histogram.c	Sat Mar 14 11:26:43 2009 +0000
+++ b/src/histogram.c	Sat Mar 14 17:21:35 2009 +0000
@@ -320,7 +320,7 @@
 
 void histogram_notify_cb(FileData *fd, NotifyType type, gpointer data)
 {
-	if (type != NOTIFY_TYPE_INTERNAL && fd->histmap)
+	if ((type & (NOTIFY_CHANGE || NOTIFY_REREAD)) && fd->histmap)
 		{
 		g_free(fd->histmap);
 		fd->histmap = NULL;