321 |
// Show device options dialog. |
// Show device options dialog. |
322 |
void qsamplerChannelForm::setupDevice ( qsamplerDevice *pDevice ) |
void qsamplerChannelForm::setupDevice ( qsamplerDevice *pDevice ) |
323 |
{ |
{ |
|
if (pDevice == NULL) |
|
|
return; |
|
|
|
|
324 |
// Create the device form if not already... |
// Create the device form if not already... |
325 |
if (m_pDeviceForm == NULL) { |
if (m_pDeviceForm == NULL) { |
326 |
m_pDeviceForm = new qsamplerDeviceForm(this, 0, |
m_pDeviceForm = new qsamplerDeviceForm(this, 0, |
333 |
// Refresh the device form with selected data. |
// Refresh the device form with selected data. |
334 |
if (m_pDeviceForm) { |
if (m_pDeviceForm) { |
335 |
m_pDeviceForm->setClient(m_pChannel->client()); // <-- refreshDevices(). |
m_pDeviceForm->setClient(m_pChannel->client()); // <-- refreshDevices(). |
336 |
m_pDeviceForm->setDevice(pDevice->deviceType(), |
if (pDevice) |
337 |
pDevice->deviceID()); |
m_pDeviceForm->setDevice(pDevice->deviceType(), pDevice->deviceID()); |
338 |
m_pDeviceForm->show(); |
m_pDeviceForm->show(); |
339 |
} |
} |
340 |
} |
} |