+ /* We don't want to add duplicate entries to the combo box.
+ However, at this point, the current device name should be
+ the only entry. Therefore, to avoid duplicates, we only
+ have to avoid adding the current device name a second time. */
+ if (strcmp(hdaps_devices[list_idx], hdaps->device_name) != 0) {
+ gtk_combo_box_append_text((GtkComboBox*)hdaps->cb_device_name, hdaps_devices[list_idx]);
+ }