summaryrefslogtreecommitdiffstats
path: root/libmenu/menu_filesel.c
diff options
context:
space:
mode:
authorulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-28 03:45:01 +0000
committerulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-28 03:45:01 +0000
commit1fbd5fb5f419b3a8512c265c45a7e26093b2020f (patch)
treed31851b2f0093f1fc1647b02f7b9ecf113121829 /libmenu/menu_filesel.c
parent1686f19335020455a871027611bc1d7d6da486d5 (diff)
downloadmpv-1fbd5fb5f419b3a8512c265c45a7e26093b2020f.tar.bz2
mpv-1fbd5fb5f419b3a8512c265c45a7e26093b2020f.tar.xz
Remove redundant option 'auto-close' from cmdlist and filesel.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25533 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmenu/menu_filesel.c')
-rw-r--r--libmenu/menu_filesel.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/libmenu/menu_filesel.c b/libmenu/menu_filesel.c
index 93cfa6c806..2a66b5d12b 100644
--- a/libmenu/menu_filesel.c
+++ b/libmenu/menu_filesel.c
@@ -45,7 +45,6 @@ struct menu_priv_s {
char* title;
char* file_action;
char* dir_action;
- int auto_close;
char** actions;
char* filter;
};
@@ -58,7 +57,6 @@ static struct menu_priv_s cfg_dflt = {
"Select a file: %p",
"loadfile '%p'",
NULL,
- 0,
NULL,
NULL
};
@@ -71,7 +69,6 @@ static m_option_t cfg_fields[] = {
{ "title", ST_OFF(title), CONF_TYPE_STRING, 0, 0, 0, NULL },
{ "file-action", ST_OFF(file_action), CONF_TYPE_STRING, 0, 0, 0, NULL },
{ "dir-action", ST_OFF(dir_action), CONF_TYPE_STRING, 0, 0, 0, NULL },
- { "auto-close", ST_OFF(auto_close), CONF_TYPE_FLAG, 0, 0, 1, NULL },
{ "actions", ST_OFF(actions), CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
{ "filter", ST_OFF(filter), CONF_TYPE_STRING, 0, 0, 0, NULL},
{ NULL, NULL, NULL, 0,0,0,NULL }
@@ -354,10 +351,7 @@ static void read_cmd(menu_t* menu,int cmd) {
char *action = mpriv->p.current->d ? mpriv->dir_action:mpriv->file_action;
sprintf(filename,"%s%s",mpriv->dir,mpriv->p.current->p.txt);
str = replace_path(action, filename);
- if (mp_input_parse_and_queue_cmds(str)) {
- if(mpriv->auto_close)
- menu->cl = 1;
- }
+ mp_input_parse_and_queue_cmds(str);
if (str != action)
free(str);
}