[vlc-devel] commit: Qt: avoid duplicates in open network, as reported by Lotesdelere ( Jean-Baptiste Kempf )

git version control git at videolan.org
Fri Apr 3 21:14:28 CEST 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Apr  3 15:02:50 2009 +0200| [6e484b0d411da4677aae31c69109e52307e3a1de] | committer: Jean-Baptiste Kempf 

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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6e484b0d411da4677aae31c69109e52307e3a1de
---

 modules/gui/qt4/components/open_panels.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/components/open_panels.cpp b/modules/gui/qt4/components/open_panels.cpp
index 4899144..a5c8e8d 100644
--- a/modules/gui/qt4/components/open_panels.cpp
+++ b/modules/gui/qt4/components/open_panels.cpp
@@ -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 );
 }
 




More information about the vlc-devel mailing list