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:
parent
8314cdbcf5
commit
97a65017ce
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user