Change the current working directory of the filebrowser to the currently selected item. Definition at line 273 of file gui_browser.c. 00274 { 00275 struct vfsref *vr; 00276 00277 if (gui_vfslist_warn_isempty(win_browser)) 00278 return; 00279 00280 vr = vfs_dup(gui_vfslist_getselected(win_browser)); 00281 if (vfs_populate(vr) != 0) { 00282 if (vfs_populatable(vr)) { 00283 /* Permission denied? */ 00284 gui_msgbar_warn(_("Unable to enter the " 00285 "selected directory.")); 00286 } 00287 vfs_close(vr); 00288 return; 00289 } 00290 00291 /* Change the directory */ 00292 gui_browser_cleanup_flist(); 00293 vfs_close(vr_curdir); 00294 vr_curdir = vr; 00295 gui_vfslist_setlist(win_browser, vfs_population(vr_curdir)); 00296 }
Here is the call graph for this function:
![]() |
1.6.3