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() ...@@ -609,12 +609,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 ) ) );
}
/* Clean the list... */ if( mrlList.count() > 0 )
mrlList.removeDuplicates(); {
/* ...and save the 8 last entries */ /* Clean the list... */
getSettings()->setValue( "OpenDialog/netMRL", mrlList ); mrlList.removeDuplicates();
/* ...and save the 8 last entries */
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