[vlc-commits] Qt4: Test the correct text.

Tobias Güntner git at videolan.org
Thu Jan 26 15:17:16 CET 2012


vlc | branch: master | Tobias Güntner <fatbull at web.de> | Thu Jan 26 09:30:45 2012 +0100| [85b39d9d430bb84ef734c341f688c368782badf0] | committer: Jean-Baptiste Kempf

Qt4: Test the correct text.

Signed-off-by: Ludovic Fauvet <etix at videolan.org>
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

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

diff --git a/modules/gui/qt4/util/timetooltip.cpp b/modules/gui/qt4/util/timetooltip.cpp
index 01b393e..9b8ab14 100644
--- a/modules/gui/qt4/util/timetooltip.cpp
+++ b/modules/gui/qt4/util/timetooltip.cpp
@@ -109,7 +109,8 @@ void TimeTooltip::buildPath()
 void TimeTooltip::setText( const QString& time, const QString& text )
 {
     mDisplayedText = time;
-    if ( !mText.isEmpty() ) mDisplayedText.append( " - " + text );
+    if ( !text.isEmpty() )
+        mDisplayedText.append( " - " ).append( text );
 
     if ( time.length() != mTime.length() || mText != text )
         buildPath();



More information about the vlc-commits mailing list