1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-19 23:41:51 +02:00

* Don't crash in MetadataEditor without a PlInterface.

This commit is contained in:
Christian Muehlhaeuser 2012-11-16 09:33:39 +01:00
parent 8314cdbcf5
commit 97a65017ce

View File

@ -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();
}
}