diff src/layout_util.c @ 1634:9b692bdb4b9f

unify code paths for New directory keep the directory visible after rename https://sourceforge.net/tracker/?func=detail&aid=1951183&group_id=222125&atid=1054680
author nadvornik
date Mon, 08 Jun 2009 19:05:49 +0000
parents 1f3bf4a631df
children ae0b1f854f22
line wrap: on
line diff
--- a/src/layout_util.c	Sun Jun 07 10:11:05 2009 +0000
+++ b/src/layout_util.c	Mon Jun 08 19:05:49 2009 +0000
@@ -262,7 +262,7 @@
 {
 	LayoutWindow *lw = data;
 
-	file_util_create_dir(lw->dir_fd, layout_window(lw), NULL, NULL);
+	if (lw->vd) vd_new_folder(lw->vd, lw->dir_fd);
 }
 
 static void layout_menu_copy_cb(GtkAction *action, gpointer data)