[vlc-commits] Qt: SearchLineEdit: fix background text after reset()

Francois Cartegnie git at videolan.org
Sun Jul 1 16:02:13 CEST 2012


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sat Jun 30 17:09:04 2012 +0200| [c40181a067ae57406fe8e92859d1e23992d4d23a] | committer: Francois Cartegnie

Qt: SearchLineEdit: fix background text after reset()

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

 modules/gui/qt4/util/searchlineedit.cpp |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/gui/qt4/util/searchlineedit.cpp b/modules/gui/qt4/util/searchlineedit.cpp
index e40b18b..27a9223 100644
--- a/modules/gui/qt4/util/searchlineedit.cpp
+++ b/modules/gui/qt4/util/searchlineedit.cpp
@@ -152,6 +152,8 @@ void SearchLineEdit::setMessageVisible( bool on )
 
 void SearchLineEdit::updateText( const QString& text )
 {
+    /* if reset() won't be focused out */
+    if ( !text.isEmpty() ) setMessageVisible( false );
     clearButton->setVisible( !text.isEmpty() );
 }
 



More information about the vlc-commits mailing list