diff src/view_dir.c @ 400:35346871af88

Fix a bug introduced in revision 489.
author zas_
date Thu, 17 Apr 2008 19:57:41 +0000
parents d071a3555011
children 0a2e1b130a25
line wrap: on
line diff
--- a/src/view_dir.c	Thu Apr 17 18:44:17 2008 +0000
+++ b/src/view_dir.c	Thu Apr 17 19:57:41 2008 +0000
@@ -897,6 +897,7 @@
 	GtkTreePath *tpath;
 	FileData *fd = NULL;
 
+	if (!vd->click_fd) return FALSE;
 	vd_color_set(vd, vd->click_fd, FALSE);
 
 	if (bevent->button != 1) return TRUE;
@@ -914,6 +915,6 @@
 		vdlist_select_row(vd, vd->click_fd);
 		}
 
-	return TRUE;
+	return FALSE;
 }