/[svn]/qsampler/trunk/src/qsamplerDeviceForm.cpp
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerDeviceForm.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1499 by capela, Tue Nov 20 16:48:04 2007 UTC revision 1504 by capela, Wed Nov 21 11:46:40 2007 UTC
# Line 481  void DeviceForm::selectDevicePort ( int Line 481  void DeviceForm::selectDevicePort ( int
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);
# Line 551  void DeviceForm::changeDevicePortParam ( Line 553  void DeviceForm::changeDevicePortParam (
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    

Legend:
Removed from v.1499  
changed lines
  Added in v.1504

  ViewVC Help
Powered by ViewVC