[vlc-commits] Qt4: Test the correct text.
Tobias Güntner
git at videolan.org
Fri Jan 27 01:17:19 CET 2012
vlc/vlc-2.0 | branch: master | Tobias Güntner <fatbull at web.de> | Thu Jan 26 09:30:45 2012 +0100| [d6e7d4514e98655ae494df033f01269e66c04bf2] | 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>
(cherry picked from commit 85b39d9d430bb84ef734c341f688c368782badf0)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=d6e7d4514e98655ae494df033f01269e66c04bf2
---
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