From 6e484b0d411da4677aae31c69109e52307e3a1de Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Fri, 3 Apr 2009 15:02:50 +0200 Subject: [PATCH] Qt: avoid duplicates in open network, as reported by Lotesdelere --- modules/gui/qt4/components/open_panels.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/gui/qt4/components/open_panels.cpp b/modules/gui/qt4/components/open_panels.cpp index 48991440e4..a5c8e8dc35 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 ); } -- 2.39.5