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