1 |
// qsamplerDeviceForm.cpp |
// qsamplerDeviceForm.cpp |
2 |
// |
// |
3 |
/**************************************************************************** |
/**************************************************************************** |
4 |
Copyright (C) 2004-2015, rncbc aka Rui Nuno Capela. All rights reserved. |
Copyright (C) 2004-2019, rncbc aka Rui Nuno Capela. All rights reserved. |
5 |
Copyright (C) 2007, 2008 Christian Schoenebeck |
Copyright (C) 2007, 2008 Christian Schoenebeck |
6 |
|
|
7 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
424 |
QTreeWidgetItem* pItem = m_ui.DeviceListView->currentItem(); |
QTreeWidgetItem* pItem = m_ui.DeviceListView->currentItem(); |
425 |
if (pItem == NULL || pItem->type() != QSAMPLER_DEVICE_ITEM) { |
if (pItem == NULL || pItem->type() != QSAMPLER_DEVICE_ITEM) { |
426 |
m_deviceType = Device::None; |
m_deviceType = Device::None; |
427 |
m_ui.DeviceNameTextLabel->setText(QString::null); |
m_ui.DeviceNameTextLabel->setText(QString()); |
428 |
m_deviceParamModel.clear(); |
m_deviceParamModel.clear(); |
429 |
m_ui.DevicePortComboBox->clear(); |
m_ui.DevicePortComboBox->clear(); |
430 |
m_devicePortParamModel.clear(); |
m_devicePortParamModel.clear(); |