X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdialogs%2Fconnect.cpp;h=cb83b3d7b55cadbbcd74db66d159109d783b9ae0;hp=51de735e00e1d5e24eb1ad6d5e0dab13ee877f15;hb=793f8096c486d0fba871227d9772a510f7496c08;hpb=815b3f2661ba68ce30076f7e14ebc02aba56d48f diff --git a/pv/dialogs/connect.cpp b/pv/dialogs/connect.cpp index 51de735e..cb83b3d7 100644 --- a/pv/dialogs/connect.cpp +++ b/pv/dialogs/connect.cpp @@ -95,12 +95,12 @@ void Connect::populate_drivers() if ((sr_config_list(drivers[i], SR_CONF_DEVICE_OPTIONS, (const void **)&hwopts, NULL) == SR_OK) && hwopts) for (int j = 0; hwopts[j]; j++) - if(hwopts[j] == SR_CONF_SAMPLERATE) { + if (hwopts[j] == SR_CONF_SAMPLERATE) { supported_device = true; break; } - if(supported_device) + if (supported_device) _drivers.addItem(QString("%1 (%2)").arg( drivers[i]->longname).arg(drivers[i]->name), qVariantFromValue((void*)drivers[i])); @@ -126,7 +126,7 @@ void Connect::scan_pressed() _device_list.clear(); const int index = _drivers.currentIndex(); - if(index == -1) + if (index == -1) return; sr_dev_driver *const driver = (sr_dev_driver*)_drivers.itemData(