fixed segfault when using raw MIDI-client
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@788 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2008-03-14 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
|
||||
|
||||
* src/widgets/instrument_midi_io_view.cpp:
|
||||
fixed segfault when using raw MIDI-client
|
||||
|
||||
2008-03-08 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
|
||||
|
||||
* data/locale/de.ts:
|
||||
|
||||
@@ -206,14 +206,17 @@ void instrumentMidiIOView::activatedWriteablePort( QAction * _item )
|
||||
void instrumentMidiIOView::updateReadablePortsMenu( void )
|
||||
{
|
||||
instrumentMidiIO * mio = castModel<instrumentMidiIO>();
|
||||
m_readablePorts->clear();
|
||||
for( instrumentMidiIO::midiPortMap::const_iterator it =
|
||||
if( m_readablePorts )
|
||||
{
|
||||
m_readablePorts->clear();
|
||||
for( instrumentMidiIO::midiPortMap::const_iterator it =
|
||||
mio->m_readablePorts.begin();
|
||||
it != mio->m_readablePorts.end(); ++it )
|
||||
{
|
||||
QAction * a = m_readablePorts->addAction( it->first );
|
||||
a->setCheckable( TRUE );
|
||||
a->setChecked( it->second );
|
||||
{
|
||||
QAction * a = m_readablePorts->addAction( it->first );
|
||||
a->setCheckable( TRUE );
|
||||
a->setChecked( it->second );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -223,14 +226,17 @@ void instrumentMidiIOView::updateReadablePortsMenu( void )
|
||||
void instrumentMidiIOView::updateWriteablePortsMenu( void )
|
||||
{
|
||||
instrumentMidiIO * mio = castModel<instrumentMidiIO>();
|
||||
m_writeablePorts->clear();
|
||||
for( instrumentMidiIO::midiPortMap::const_iterator it =
|
||||
mio->m_writeablePorts.begin();
|
||||
it != mio->m_writeablePorts.end(); ++it )
|
||||
if( m_writeablePorts )
|
||||
{
|
||||
QAction * a = m_writeablePorts->addAction( it->first );
|
||||
a->setCheckable( TRUE );
|
||||
a->setChecked( it->second );
|
||||
m_writeablePorts->clear();
|
||||
for( instrumentMidiIO::midiPortMap::const_iterator it =
|
||||
mio->m_writeablePorts.begin();
|
||||
it != mio->m_writeablePorts.end(); ++it )
|
||||
{
|
||||
QAction * a = m_writeablePorts->addAction( it->first );
|
||||
a->setCheckable( TRUE );
|
||||
a->setChecked( it->second );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user