fixed crash when closing controller select dialog and no controller has been selected (closes #2078357)
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1572 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -329,7 +329,7 @@ void controllerConnectionDialog::selectController( void )
|
||||
m_userController->model()->value() );
|
||||
}
|
||||
|
||||
if( m_controller->hasModel( m_targetModel ) )
|
||||
if( m_controller && m_controller->hasModel( m_targetModel ) )
|
||||
{
|
||||
QMessageBox::warning(this, tr("LMMS"), tr("Cycle Detected."));
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user