mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 06:36:55 +02:00
* Don't crash in MetadataEditor without a PlInterface.
This commit is contained in:
@@ -153,10 +153,14 @@ MetadataEditor::loadResult( const Tomahawk::result_ptr& result )
|
|||||||
setFileName( fi.fileName() );
|
setFileName( fi.fileName() );
|
||||||
setFileSize( TomahawkUtils::filesizeToString( fi.size() ) );
|
setFileSize( TomahawkUtils::filesizeToString( fi.size() ) );
|
||||||
|
|
||||||
|
if ( m_interface )
|
||||||
|
{
|
||||||
m_index = m_interface->indexOfResult( result );
|
m_index = m_interface->indexOfResult( result );
|
||||||
|
|
||||||
if ( m_index >= 0 )
|
if ( m_index >= 0 )
|
||||||
enablePushButtons();
|
enablePushButtons();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Reference in New Issue
Block a user