use default context menu for Fader. Connection dialog improvements
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1059 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -260,12 +260,16 @@ void controllerConnectionDialog::selectController( void )
|
||||
{
|
||||
if( m_midiGroupBox->model()->value() > 0 )
|
||||
{
|
||||
m_controller = m_midiController->copyToMidiController(
|
||||
engine::getSong() );
|
||||
if( m_midiControllerSpinBox->model()->value() > 0 )
|
||||
{
|
||||
m_controller = m_midiController->copyToMidiController(
|
||||
engine::getSong() );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if( m_userGroupBox->model()->value() > 0 )
|
||||
if( m_userGroupBox->model()->value() > 0 &&
|
||||
engine::getSong()->controllers().size() )
|
||||
{
|
||||
m_controller = engine::getSong()->controllers().at(
|
||||
m_userController->model()->value() );
|
||||
|
||||
@@ -89,10 +89,7 @@ void fader::contextMenuEvent( QContextMenuEvent * _ev )
|
||||
if( !model()->nullTrack() )
|
||||
{
|
||||
captionMenu contextMenu( accessibleName() );
|
||||
contextMenu.addAction( embed::getIconPixmap( "automation" ),
|
||||
tr( "&Open in automation editor" ),
|
||||
model()->getAutomationPattern(),
|
||||
SLOT( openInAutomationEditor() ) );
|
||||
addDefaultActions( &contextMenu );
|
||||
contextMenu.exec( QCursor::pos() );
|
||||
_ev->accept();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user