mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-07-27 04:24:12 -04:00
Fix built-in device selection regression
Built-in devices were previously always selectable regardless of their claimed state. The "show devices in use" change https://github.com/f4exb/sdrangel/commit/964bc0994d1e5c54ef8b08eb9102e0ee4f7d744e inadvertently disabled all claimed devices in the selection dialog, preventing multiple instances of FileInput, RemoteTCPInput, AudioInput, TestSource and other built-in sources from being opened. :( Only claimed physical devices are now disabled and marked "[in use]". Built-in devices remain selectable as before. Signed-off-by: Robin Getz <rgetz503@gmail.com>
This commit is contained in:
@@ -91,7 +91,8 @@ void SamplingDeviceDialog::displayDevices()
|
||||
samplingDevice = DeviceEnumerator::instance()->getMIMOSamplingDevice(coreDeviceIndex);
|
||||
}
|
||||
|
||||
if (samplingDevice && samplingDevice->claimed >= 0) {
|
||||
if (samplingDevice && samplingDevice->claimed >= 0 &&
|
||||
samplingDevice->type != PluginInterface::SamplingDevice::BuiltInDevice) {
|
||||
QStandardItem *item = model->item(idx);
|
||||
if (item) {
|
||||
// Deactivate to block selection clicks
|
||||
|
||||
Reference in New Issue
Block a user