summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ui/qt/capture_interfaces_dialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/capture_interfaces_dialog.cpp b/ui/qt/capture_interfaces_dialog.cpp
index 9a51919d2a..128f7f65ff 100644
--- a/ui/qt/capture_interfaces_dialog.cpp
+++ b/ui/qt/capture_interfaces_dialog.cpp
@@ -286,7 +286,7 @@ void CaptureInterfacesDialog::updateFromGlobalDeviceSelections()
for (guint i = 0; i < global_capture_opts.all_ifaces->len; i++) {
interface_t device = g_array_index(global_capture_opts.all_ifaces, interface_t, i);
if (device_name.compare(QString().fromUtf8(device.name)) == 0) {
- if (device.selected != (*iter)->isSelected()) {
+ if ((bool)device.selected != (*iter)->isSelected()) {
(*iter)->setSelected(device.selected);
}
break;