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:
Tobias Doerffel
2008-09-07 12:59:04 +00:00
parent 408ab3fea5
commit 1d9e040d48
2 changed files with 5 additions and 1 deletions

View File

@@ -1,5 +1,9 @@
2008-09-07 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
* src/gui/controller_connection_dialog.cpp:
fixed crash when closing controller select dialog and no controller
has been selected (closes #2078357)
* include/track_container.h:
* src/core/song.cpp:
* src/core/track_container.cpp:

View File

@@ -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;