Disable Ok until a device has been selected, and select the first device when scan is pressed
_device_list.clear();
_serial_device.hide();
_form_layout.labelForField(&_serial_device)->hide();
+ _button_box.button(QDialogButtonBox::Ok)->setDisabled(true);
}
void Connect::set_serial_connection()
g_slist_free(devices);
g_slist_free_full(drvopts, (GDestroyNotify)free_drvopts);
+
+ _device_list.setCurrentRow(0);
+ _button_box.button(QDialogButtonBox::Ok)->setDisabled(false);
}
void Connect::device_selected(int index)