forked from osmocom/wireshark
From Sean Bright:
Wireshark crashes after editing interface settings from capture options dialog. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6788 svn path=/trunk/; revision=41017
This commit is contained in:
parent
196e1ab97b
commit
d0b4fb05f0
|
@ -1677,6 +1677,7 @@ update_options_table(gint index)
|
|||
path_str = g_strdup_printf("%d", index);
|
||||
path = gtk_tree_path_new_from_string(path_str);
|
||||
model = gtk_tree_view_get_model(if_cb);
|
||||
gtk_tree_model_get_iter(model, &iter, path);
|
||||
gtk_tree_model_get(model, &iter, CAPTURE, &enabled, -1);
|
||||
if (enabled == FALSE) {
|
||||
device.selected = TRUE;
|
||||
|
@ -1697,6 +1698,7 @@ update_options_table(gint index)
|
|||
gtk_widget_set_sensitive(ok_bt, FALSE);
|
||||
}
|
||||
gtk_tree_path_free (path);
|
||||
g_free(path_str);
|
||||
}
|
||||
if (interfaces_dialog_window_present()) {
|
||||
update_selected_interface(g_strdup(device.name));
|
||||
|
|
Loading…
Reference in New Issue