changeset 391:fcaf9c175742

Fix a crash introduced in revision 477.
author zas_
date Wed, 16 Apr 2008 22:23:43 +0000
parents 39369521e263
children 5a73f2e1bf79
files src/view_dir.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/view_dir.c	Wed Apr 16 22:21:01 2008 +0000
+++ b/src/view_dir.c	Wed Apr 16 22:23:43 2008 +0000
@@ -63,13 +63,14 @@
 	vd->drop_list = NULL;
 
 	vd->popup = NULL;
-	vd->pf = NULL;
 
 	vd->widget = gtk_scrolled_window_new(NULL, NULL);
 	gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(vd->widget), GTK_SHADOW_IN);
 	gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(vd->widget),
 				       GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS);
 
+	vd->pf = folder_icons_new();
+
 	switch(type)
 	{
 	case DIRVIEW_LIST: vd = vdlist_new(vd, path); break;
@@ -79,8 +80,6 @@
 	g_signal_connect(G_OBJECT(vd->widget), "destroy",
 			 G_CALLBACK(vd_destroy_cb), vd);
 
-	vd->pf = folder_icons_new();
-
 	return vd;
 }