From: Aurelien Jacobs Date: Thu, 4 Dec 2014 00:14:09 +0000 (+0100) Subject: connect: Fix filtering of supported devices. X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=commitdiff_plain;h=55ab5e32cd4c8b750857fecf3b8ebb55af64c5fa;hp=64f4cc490877c8c542573ab494ab366a57c08cd5 connect: Fix filtering of supported devices. Now that driver options are split from device options, it is not possible to check the SAMPLERATE option on a driver as it is a device only option. The SAMPLERATE test still works on some drivers that didn't have their options split yet, but this won't hold true for long. The proper way is to check the driver class, which is the only option you can expect at the driver level for now. --- diff --git a/pv/dialogs/connect.cpp b/pv/dialogs/connect.cpp index 2700672..f7b0fc7 100644 --- a/pv/dialogs/connect.cpp +++ b/pv/dialogs/connect.cpp @@ -104,7 +104,9 @@ void Connect::populate_drivers() * and sensors. */ bool supported_device = driver->config_check( - ConfigKey::SAMPLERATE, ConfigKey::DEVICE_OPTIONS); + ConfigKey::LOGIC_ANALYZER, ConfigKey::DEVICE_OPTIONS) | + driver->config_check( + ConfigKey::OSCILLOSCOPE, ConfigKey::DEVICE_OPTIONS); if (supported_device) drivers_.addItem(QString("%1 (%2)").arg(