[vlc-commits] commit: Qt: do not search SD if the text is empty (Jean-Baptiste Kempf )

git at videolan.org git at videolan.org
Sun Oct 24 16:58:49 CEST 2010


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Oct 24 03:38:46 2010 +0200| [da1239a1439eb3bfe753a37300bc04ddc6fb4de6] | committer: Jean-Baptiste Kempf 

Qt: do not search SD if the text is empty

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

 .../gui/qt4/components/playlist/standardpanel.cpp  |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/components/playlist/standardpanel.cpp b/modules/gui/qt4/components/playlist/standardpanel.cpp
index 88a6573..217f699 100644
--- a/modules/gui/qt4/components/playlist/standardpanel.cpp
+++ b/modules/gui/qt4/components/playlist/standardpanel.cpp
@@ -231,7 +231,7 @@ void StandardPLPanel::searchDelayed()
 
     if( type == SD_TYPE )
     {
-        if( !name.isEmpty() )
+        if( !name.isEmpty() && !searchEdit->text().isEmpty() )
             playlist_QueryServicesDiscovery( THEPL, qtu(name), qtu(searchEdit->text() ) );
     }
 }



More information about the vlc-commits mailing list