Default to midi in connection-dialog, correct pointer to autoDetectCheckBox
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1045 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -1013,7 +1013,8 @@ void song::saveControllerStates( QDomDocument & _doc, QDomElement & _this )
|
||||
void song::restoreControllerStates( const QDomElement & _this )
|
||||
{
|
||||
QDomNode node = _this.firstChild();
|
||||
while( !node.isNull() ) {
|
||||
while( !node.isNull() )
|
||||
{
|
||||
addController( controller::create( node.toElement(), this ) );
|
||||
|
||||
node = node.nextSibling();
|
||||
|
||||
@@ -146,7 +146,7 @@ controllerConnectionDialog::controllerConnectionDialog( QWidget * _parent,
|
||||
m_midiControllerSpinBox->move( 72, 24 );
|
||||
|
||||
|
||||
ledCheckBox * m_midiAutoDetectCheckBox =
|
||||
m_midiAutoDetectCheckBox =
|
||||
new ledCheckBox( tr("Auto Detect"),
|
||||
m_midiGroupBox, tr("Auto Detect") );
|
||||
m_midiAutoDetectCheckBox->setModel( &m_midiAutoDetect );
|
||||
@@ -236,6 +236,9 @@ controllerConnectionDialog::controllerConnectionDialog( QWidget * _parent,
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
m_midiGroupBox->model()->setValue( TRUE );
|
||||
}
|
||||
|
||||
|
||||
show();
|
||||
@@ -303,7 +306,7 @@ void controllerConnectionDialog::midiToggled( void )
|
||||
|
||||
m_midiChannelSpinBox->setEnabled( enabled );
|
||||
m_midiControllerSpinBox->setEnabled( enabled );
|
||||
//m_midiAutoDetect->setEnabled( enabled );
|
||||
m_midiAutoDetectCheckBox->setEnabled( enabled );
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user