Commit 6e484b0d authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: avoid duplicates in open network, as reported by Lotesdelere

parent c6d0d4b6
...@@ -623,7 +623,8 @@ void NetOpenPanel::updateCompleter() ...@@ -623,7 +623,8 @@ void NetOpenPanel::updateCompleter()
{ {
assert( mrlList ); assert( mrlList );
QStringList tempL = mrlList->stringList(); QStringList tempL = mrlList->stringList();
tempL.append( ui.addressText->text() ); if( !tempL.contains( ui.addressText->text() ) )
tempL.append( ui.addressText->text() );
mrlList->setStringList( tempL ); mrlList->setStringList( tempL );
} }
......
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