Deselect adapter upon configuration error

This commit is contained in:
Raphael Assenat 2015-12-06 22:15:41 -05:00
parent 9c88d76612
commit 6a2c109ee8
1 changed files with 2 additions and 0 deletions

View File

@ -224,12 +224,14 @@ G_MODULE_EXPORT void updatestart_btn_clicked_cb(GtkWidget *w, gpointer data)
void deselect_adapter(struct application *app)
{
GET_UI_ELEMENT(GtkComboBox, cb_adapter_list);
GtkWidget *adapter_details = GTK_WIDGET( gtk_builder_get_object(app->builder, "adapterDetails") );
printf("deselect adapter\n");
if (app->current_adapter_handle) {
gcn64_closeDevice(app->current_adapter_handle);
app->current_adapter_handle = NULL;
gtk_widget_set_sensitive(adapter_details, FALSE);
}
gtk_combo_box_set_active_iter(cb_adapter_list, NULL);