Commit d6e7d451 authored by Tobias Güntner's avatar Tobias Güntner Committed by Jean-Baptiste Kempf

Qt4: Test the correct text.

Signed-off-by: default avatarLudovic Fauvet <etix@videolan.org>
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 85b39d9d)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 2855320a
......@@ -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();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment