Commit 77a6b574 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: remember correctly the network list

(cherry picked from commit cba6de799bbe8583a88e00a71a277210a0b2acce)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 1591fb9f
...@@ -611,12 +611,19 @@ NetOpenPanel::~NetOpenPanel() ...@@ -611,12 +611,19 @@ NetOpenPanel::~NetOpenPanel()
/* Create the list with the current items */ /* Create the list with the current items */
QStringList mrlList; QStringList mrlList;
for( int i = 0; i < ui.urlComboBox->count(); i++ ) for( int i = 0; i < ui.urlComboBox->count(); i++ )
{
mrlList << ui.urlComboBox->itemText( i ); mrlList << ui.urlComboBox->itemText( i );
msg_Err( p_intf, "%s" , qtu( ui.urlComboBox->itemText( i ) ) );
}
if( mrlList.count() > 0 )
{
/* Clean the list... */ /* Clean the list... */
mrlList.removeDuplicates(); mrlList.removeDuplicates();
/* ...and save the 8 last entries */ /* ...and save the 8 last entries */
getSettings()->setValue( "OpenDialog/netMRL", mrlList ); getSettings()->setValue( "OpenDialog/netMRL", mrlList );
}
} }
void NetOpenPanel::clear() void NetOpenPanel::clear()
......
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