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