mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 03:10:12 +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() );
|
||||
setFileSize( TomahawkUtils::filesizeToString( fi.size() ) );
|
||||
|
||||
m_index = m_interface->indexOfResult( result );
|
||||
if ( m_index >= 0 )
|
||||
enablePushButtons();
|
||||
if ( m_interface )
|
||||
{
|
||||
m_index = m_interface->indexOfResult( result );
|
||||
|
||||
if ( m_index >= 0 )
|
||||
enablePushButtons();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user