do not crash when opening controller connection dialog and using a non-sequenced (raw) MIDI-client

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1705 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-09-24 09:08:53 +00:00
parent b83b56fdf5
commit b75c3239f4
2 changed files with 19 additions and 1 deletions

View File

@@ -361,7 +361,10 @@ void controllerConnectionDialog::midiToggled( void )
&m_midiController->m_midiPort.m_inputChannelModel );
m_midiControllerSpinBox->setModel(
&m_midiController->m_midiPort.m_inputControllerModel );
m_readablePorts->setModel( &m_midiController->m_midiPort );
if( m_readablePorts )
{
m_readablePorts->setModel( &m_midiController->m_midiPort );
}
connect( m_midiController, SIGNAL( valueChanged() ),