/[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 3832 by capela, Fri Mar 27 17:57:40 2020 UTC revision 3833 by capela, Thu Oct 22 16:51:16 2020 UTC
# Line 93  DeviceForm::DeviceForm ( QWidget *pParen Line 93  DeviceForm::DeviceForm ( QWidget *pParen
93                  SIGNAL(clicked()),                  SIGNAL(clicked()),
94                  SLOT(refreshDevices()));                  SLOT(refreshDevices()));
95          QObject::connect(m_ui.DriverNameComboBox,          QObject::connect(m_ui.DriverNameComboBox,
96                  SIGNAL(activated(const QString&)),                  SIGNAL(activated(int)),
97                  SLOT(selectDriver(const QString&)));                  SLOT(selectDriver(int)));
98          QObject::connect(m_ui.DevicePortComboBox,          QObject::connect(m_ui.DevicePortComboBox,
99                  SIGNAL(activated(int)),                  SIGNAL(activated(int)),
100                  SLOT(selectDevicePort(int)));                  SLOT(selectDevicePort(int)));
# Line 380  void DeviceForm::refreshDevices (void) Line 380  void DeviceForm::refreshDevices (void)
380    
381    
382  // Driver selection slot.  // Driver selection slot.
383  void DeviceForm::selectDriver ( const QString& sDriverName )  void DeviceForm::selectDriver ( int iDriver )
384  {  {
385          if (m_iDirtySetup > 0)          if (m_iDirtySetup > 0)
386                  return;                  return;
# Line 388  void DeviceForm::selectDriver ( const QS Line 388  void DeviceForm::selectDriver ( const QS
388          //          //
389          //  Driver name has changed for a new device...          //  Driver name has changed for a new device...
390          //          //
391            const QString& sDriverName
392                    = m_ui.DriverNameComboBox->itemText(iDriver);
393            if (sDriverName.isEmpty())
394                    return;
395    
396          QTreeWidgetItem* pItem = m_ui.DeviceListView->currentItem();          QTreeWidgetItem* pItem = m_ui.DeviceListView->currentItem();
397          if (pItem == nullptr || pItem->type() != QSAMPLER_DEVICE_ITEM)          if (pItem == nullptr || pItem->type() != QSAMPLER_DEVICE_ITEM)

Legend:
Removed from v.3832  
changed lines
  Added in v.3833

  ViewVC Help
Powered by ViewVC