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:
parent
a44c55c3ff
commit
20511fb6b4
@ -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" ) ) );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user