changeset 1230:d13233ab7def

fixed view_dir notification
author nadvornik
date Fri, 02 Jan 2009 09:39:14 +0000
parents 878718372aca
children ca8ccf0c3e81
files src/view_dir.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/view_dir.c	Fri Jan 02 09:26:23 2009 +0000
+++ b/src/view_dir.c	Fri Jan 02 09:39:14 2009 +0000
@@ -133,12 +133,16 @@
 {
 	gint ret = FALSE;
 
+	file_data_unregister_notify_func(vd_notify_cb, vd);
+
 	switch(vd->type)
 	{
 	case DIRVIEW_LIST: ret = vdlist_set_fd(vd, dir_fd); break;
 	case DIRVIEW_TREE: ret = vdtree_set_fd(vd, dir_fd); break;
 	}
 
+	file_data_register_notify_func(vd_notify_cb, vd, NOTIFY_PRIORITY_HIGH);
+
 	return ret;
 }