]> sigrok.org Git - pulseview.git/commitdiff
Added missing braces in pv::dialogs::Connect::populate_drivers()
authorJoel Holdsworth <redacted>
Mon, 22 Apr 2013 20:41:48 +0000 (21:41 +0100)
committerJoel Holdsworth <redacted>
Mon, 22 Apr 2013 20:41:48 +0000 (21:41 +0100)
pv/dialogs/connect.cpp

index e205c45047c8c07b97bdaa944577b8add97bdf10..02941f2f6785e02efcff07a80a6520c16d8e36d2 100644 (file)
@@ -96,7 +96,7 @@ void Connect::populate_drivers()
                 */
                bool supported_device = false;
                if ((sr_config_list(drivers[i], SR_CONF_DEVICE_OPTIONS,
-                               &gvar_opts, NULL) == SR_OK))
+                               &gvar_opts, NULL) == SR_OK)) {
                        hwopts = (const int32_t *)g_variant_get_fixed_array(gvar_opts,
                                        &num_opts, sizeof(int32_t));
                        for (unsigned int j = 0; j < num_opts; j++)
@@ -104,6 +104,7 @@ void Connect::populate_drivers()
                                        supported_device = true;
                                        break;
                                }
+               }
 
                if (supported_device)
                        _drivers.addItem(QString("%1 (%2)").arg(