more checks before accessing icon - fixes crash when using ZynAddSubFX plugin
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1777 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -126,7 +126,9 @@ void trackLabelButton::paintEvent( QPaintEvent * _pe )
|
||||
dynamic_cast<instrumentTrack *>(
|
||||
m_trackView->getTrack() );
|
||||
const pixmapLoader * pl;
|
||||
if( it && ( pl = it->getInstrument()->getDescriptor()->logo ) )
|
||||
if( it && it->getInstrument() &&
|
||||
it->getInstrument()->getDescriptor() &&
|
||||
( pl = it->getInstrument()->getDescriptor()->logo ) )
|
||||
{
|
||||
if( pl->pixmapName() != m_iconName )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user