481 |
return; |
return; |
482 |
|
|
483 |
qsamplerDevice& device = ((qsamplerDeviceItem *) pItem)->device(); |
qsamplerDevice& device = ((qsamplerDeviceItem *) pItem)->device(); |
484 |
qsamplerDevicePort *pPort = device.ports().at(iPort); |
qsamplerDevicePort *pPort = NULL; |
485 |
|
if (iPort >= 0 && iPort < device.ports().count()) |
486 |
|
pPort = device.ports().at(iPort); |
487 |
if (pPort) { |
if (pPort) { |
488 |
m_iDirtySetup++; |
m_iDirtySetup++; |
489 |
devicePortParamModel.refresh(pPort, false); |
devicePortParamModel.refresh(pPort, false); |
553 |
qsamplerDevice& device = ((qsamplerDeviceItem *) pItem)->device(); |
qsamplerDevice& device = ((qsamplerDeviceItem *) pItem)->device(); |
554 |
|
|
555 |
int iPort = ui.DevicePortComboBox->currentIndex(); |
int iPort = ui.DevicePortComboBox->currentIndex(); |
556 |
qsamplerDevicePort *pPort = device.ports().at(iPort); |
qsamplerDevicePort *pPort = NULL; |
557 |
|
if (iPort >= 0 && iPort < device.ports().count()) |
558 |
|
pPort = device.ports().at(iPort); |
559 |
if (pPort == NULL) |
if (pPort == NULL) |
560 |
return; |
return; |
561 |
|
|