1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-14 13:01:53 +02:00

* Show full & absolute path for files in MetadataEditor.

This commit is contained in:
Christian Muehlhaeuser 2012-11-16 11:18:34 +01:00
parent a44c55c3ff
commit 20511fb6b4

View File

@ -226,9 +226,12 @@ MetadataEditor::loadResult( const Tomahawk::result_ptr& result )
setYear( result->year() );
setBitrate( result->bitrate() );
QFileInfo fi( QUrl( m_result->url() ).toLocalFile() );
setFileName( fi.fileName() );
setFileSize( TomahawkUtils::filesizeToString( fi.size() ) );
if ( result->collection()->source()->isLocal() )
{
QFileInfo fi( QUrl( m_result->url() ).toLocalFile() );
setFileName( fi.absoluteFilePath() );
setFileSize( TomahawkUtils::filesizeToString( fi.size() ) );
}
setWindowTitle( QString( result->track() + " - " + tr( "Properties" ) ) );