]> git.sesse.net Git - vlc/commitdiff
Qt: avoid duplicates in open network, as reported by Lotesdelere
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 3 Apr 2009 13:02:50 +0000 (15:02 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 3 Apr 2009 19:14:13 +0000 (21:14 +0200)
modules/gui/qt4/components/open_panels.cpp

index 48991440e4e51e9830c8db489645b01845f9cb0d..a5c8e8dc35a57e0bb311503d30bb59f1d17da826 100644 (file)
@@ -623,7 +623,8 @@ void NetOpenPanel::updateCompleter()
 {
     assert( mrlList );
     QStringList tempL = mrlList->stringList();
-    tempL.append( ui.addressText->text() );
+    if( !tempL.contains( ui.addressText->text() ) )
+        tempL.append( ui.addressText->text() );
     mrlList->setStringList( tempL );
 }