300 |
// if we're editing an existing sampler channel... |
// if we're editing an existing sampler channel... |
301 |
m_ui.AudioRoutingTable->setVisible(!bNew); |
m_ui.AudioRoutingTable->setVisible(!bNew); |
302 |
|
|
303 |
|
const QString sInstrumentNrToolTip = |
304 |
|
(pOptions->bInstrumentNames) ? |
305 |
|
"Select an instrument of the file" : |
306 |
|
"You might want to enable instrument name retrieval in the " |
307 |
|
"settings dialog"; |
308 |
|
m_ui.InstrumentNrComboBox->setToolTip( |
309 |
|
QObject::tr(sInstrumentNrToolTip.toUtf8().data()) |
310 |
|
); |
311 |
|
|
312 |
// As convenient, make it ready on stabilizeForm() for |
// As convenient, make it ready on stabilizeForm() for |
313 |
// prompt acceptance, if we got the minimum required... |
// prompt acceptance, if we got the minimum required... |
314 |
/* if (sEngineName != qsamplerChannel::noEngineName() && |
/* if (sEngineName != qsamplerChannel::noEngineName() && |
510 |
qsamplerDevice::DeviceType deviceTypeMode, |
qsamplerDevice::DeviceType deviceTypeMode, |
511 |
const QString& sDriverName ) |
const QString& sDriverName ) |
512 |
{ |
{ |
|
if (pDevice == NULL) |
|
|
return; |
|
|
|
|
513 |
MainForm *pMainForm = MainForm::getInstance(); |
MainForm *pMainForm = MainForm::getInstance(); |
514 |
if (pMainForm == NULL) |
if (pMainForm == NULL) |
515 |
return; |
return; |