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

Qt: remember correctly the network list

(cherry picked from commit cba6de79)
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 ) ) );
}
/* 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