forked from osmocom/wireshark
Fix "No interfaces selected" when restarting capture
global_capture_opts.ifaces store the interfaces that were added for the
next capture and must always be marked as selected.
Fixes regression from 92a2661
.
Bug: 11939
Change-Id: Ib3dcd1b228b7a9681439e172d934e0ce66de6c0f
Reviewed-on: https://code.wireshark.org/review/14725
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
parent
a859793b0d
commit
b88153e595
|
@ -78,6 +78,10 @@ fill_from_ifaces (interface_t *device)
|
|||
if (interface_opts.linktype != -1) {
|
||||
device->active_dlt = interface_opts.linktype;
|
||||
}
|
||||
if (!device->selected) {
|
||||
device->selected = TRUE;
|
||||
global_capture_opts.num_selected++;
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue