diff src/layout_util.c @ 1637:cc3ccf3c7c27

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 5ad450d67878
children 58a5d1e01e33
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
@@ -263,7 +263,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)