Commit cba6de79 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: remember correctly the network list

parent 06430f7c
......@@ -609,12 +609,19 @@ NetOpenPanel::~NetOpenPanel()
/* Create the list with the current items */
QStringList mrlList;
for( int i = 0; i < ui.urlComboBox->count(); i++ )
{
mrlList << ui.urlComboBox->itemText( i );
msg_Err( p_intf, "%s" , qtu( ui.urlComboBox->itemText( i ) ) );
}
if( mrlList.count() > 0 )
{
/* Clean the list... */
mrlList.removeDuplicates();
/* ...and save the 8 last entries */
getSettings()->setValue( "OpenDialog/netMRL", mrlList );
}
}
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