From: Joel Holdsworth Date: Mon, 22 Apr 2013 20:41:48 +0000 (+0100) Subject: Added missing braces in pv::dialogs::Connect::populate_drivers() X-Git-Tag: pulseview-0.1.0~28 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=ef6d8458be34101907f5c45c3de22a10e554e289;p=pulseview.git Added missing braces in pv::dialogs::Connect::populate_drivers() --- diff --git a/pv/dialogs/connect.cpp b/pv/dialogs/connect.cpp index e205c450..02941f2f 100644 --- a/pv/dialogs/connect.cpp +++ b/pv/dialogs/connect.cpp @@ -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(