check for focusWidget() being NULL before checking inheritance - fixes crash for example when loading VST plugins
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1775 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -719,6 +719,7 @@ void pianoView::focusOutEvent( QFocusEvent * )
|
||||
// focus just switched to another control inside the instrument track
|
||||
// window we live in?
|
||||
if( parentWidget()->parentWidget()->focusWidget() != this &&
|
||||
parentWidget()->parentWidget()->focusWidget() != NULL &&
|
||||
!parentWidget()->parentWidget()->
|
||||
focusWidget()->inherits( "QLineEdit" ) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user