[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [Amarok] cdfd101: Do not show garbage in the parsed %track of Filena
From:       Olivier Trichet <nive () nivalis ! org>
Date:       2010-11-01 12:33:35
Message-ID: 20101101123335.9369EA60A6 () git ! kde ! org
[Download RAW message or body]

commit cdfd1015701aba09ad53b62f776b9de8fd133a02
branch master
Author: Olivier Trichet <nive@nivalis.org>
Date:   Sun Oct 31 18:09:51 2010 +0100

    Do not show garbage in the parsed %track of FilenameLayoutDialog
    
    - Fix int to QString conversion

diff --git a/src/dialogs/FilenameLayoutDialog.cpp \
b/src/dialogs/FilenameLayoutDialog.cpp index 76474b5..9b572a9 100644
--- a/src/dialogs/FilenameLayoutDialog.cpp
+++ b/src/dialogs/FilenameLayoutDialog.cpp
@@ -398,12 +398,12 @@ FilenameLayoutDialog::updatePreview()                 //SLOT
                 Genre_result->setText( i18nc( "Text to represent an empty tag. \
Braces (<>) are only to clarify emptiness.", "&lt;empty&gt;" ) );  
             if( tags.contains( "track" ) )
-                Track_result->setText( "<font color='" + QColor( track_color \
).name() + "'>" + QString( tags["track"].toInt() ) + "</font>" ); +                \
Track_result->setText( "<font color='" + QColor( track_color ).name() + "'>" + \
QString::number( tags["track"].toInt() ) + "</font>" );  else
                 Track_result->setText( i18nc( "Text to represent an empty tag. \
Braces (<>) are only to clarify emptiness.", "&lt;empty&gt;" ) );  
             if( tags.contains( "year" ) )
-                Year_result->setText( "<font color='" + QColor( year_color ).name() \
+ "'>" + QString( tags["year"].toInt() ) + "</font>" ); +                \
Year_result->setText( "<font color='" + QColor( year_color ).name() + "'>" + \
QString::number( tags["year"].toInt() ) + "</font>" );  else
                 Year_result->setText( i18nc( "Text to represent an empty tag. Braces \
(<>) are only to clarify emptiness.", "&lt;empty&gt;" ) );  


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic