Commit 801dec3d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Qt4: add item options for all items

There are no reasons to only apply them to the first one. Certainly
some options might only make sense with a single item. But then it
really boils down to having only one item. Some options *do* make
sense for all (>1) items.
parent bd134cba
...@@ -372,25 +372,20 @@ void OpenDialog::enqueue( bool b_enqueue ) ...@@ -372,25 +372,20 @@ void OpenDialog::enqueue( bool b_enqueue )
input_item_t *p_input; input_item_t *p_input;
p_input = input_item_New( qtu( itemsMRL[i] ), NULL ); p_input = input_item_New( qtu( itemsMRL[i] ), NULL );
/* Insert options only for the first element. /* Take options from the UI, not from what we stored */
We don't know how to edit that anyway. */ QStringList optionsList = ui.advancedLineInput->text().split( " :" );
if( i == 0 )
{
/* Take options from the UI, not from what we stored */
QStringList optionsList = ui.advancedLineInput->text().split( " :" );
/* Insert options */ /* Insert options */
for( int j = 0; j < optionsList.count(); j++ ) for( int j = 0; j < optionsList.count(); j++ )
{
QString qs = colon_unescape( optionsList[j] );
if( !qs.isEmpty() )
{ {
QString qs = colon_unescape( optionsList[j] ); input_item_AddOption( p_input, qtu( qs ),
if( !qs.isEmpty() ) VLC_INPUT_OPTION_TRUSTED );
{
input_item_AddOption( p_input, qtu( qs ),
VLC_INPUT_OPTION_TRUSTED );
#ifdef DEBUG_QT #ifdef DEBUG_QT
msg_Warn( p_intf, "Input option: %s", qtu( qs ) ); msg_Warn( p_intf, "Input option: %s", qtu( qs ) );
#endif #endif
}
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment