wireshark/ui
Peter Wu 40a5fb567a Restore interface selection after interface refresh
Remember which interfaces were selected for the next capture and restore
the selection (note that only active capture devices are stored in
"ifaces", so simply querying that list does not work).

The original change tried to fix duplicate devices (which were added
from "ifaces" to "all_ifaces") by clearing "ifaces", this patch tries to
fix that by ignoring all non-PIPE devices while preserving "ifaces".

Now after refreshing the interfaces list in Qt, the selection in the
Manage Interfaces dialog is preserved. Removal of the bluetooth0
interface+refresh does hide the interface. Read+refresh does add the
interface (and preserve the selected state).

Change-Id: I26a78982f0327c835dc96da9c813e38f31d6cd3d
Fixes: v1.99.0-rc1-879-g55733ea170 ("fix scan_local_interfaces()")
Reviewed-on: https://code.wireshark.org/review/20477
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2017-03-22 05:03:27 +00:00
..
cli tap-iostat (cli): fix this statement may fall through [-Werror=implicit-fallthrough] found by gcc7 2017-03-13 12:33:37 +00:00
gtk Make GTK compile with HAVE_PCAP_REMOTE on macOS with clang-800.0.42.1. 2017-03-19 18:01:43 +00:00
qt response_time_delay_dialog (Qt): fix typo reponse -> response 2017-03-19 16:50:08 +00:00
win32 print_stream: free memory on exit. 2017-02-27 13:25:26 +00:00
.editorconfig Add EditorConfig settings for most C files 2016-03-08 10:46:35 +00:00
CMakeLists.txt Enable exporting objects with tshark 2016-12-02 16:07:35 +00:00
Makefile.am Enable exporting objects with tshark 2016-12-02 16:07:35 +00:00
alert_box.c Make failure_alert_box() be printf-like. 2016-03-27 02:06:28 +00:00
alert_box.h Make failure_alert_box() be printf-like. 2016-03-27 02:06:28 +00:00
all_files_wildcard.h Add a #define for the wildcard pattern that matches all files. 2016-03-01 02:00:25 +00:00
capture.c g_assert on device.if_info.name to prevent undefined behaviour. 2017-03-16 06:35:49 +00:00
capture.h capture(.h): fix api reference 2016-01-26 09:10:25 +00:00
capture_globals.h Allow "capture info data" to not be a singleton. 2015-12-19 14:22:56 +00:00
capture_ui_utils.c Qt: Use uniform interface display name 2015-12-02 09:57:35 +00:00
capture_ui_utils.h Qt: Update selected interface filter behavior. 2016-02-26 17:28:04 +00:00
commandline.c Add enabled protocol list for dissectors who are disabled by default 2016-12-24 02:30:21 +00:00
commandline.h Have routines for parsing options that affect dissection. 2016-10-30 22:57:16 +00:00
console.c More checks for localtime() and gmtime() returning NULL. 2016-10-22 02:27:32 +00:00
console.h
decode_as_utils.c Combine Decode As and port preferences for tcp.port dissector table. 2016-10-08 02:44:53 +00:00
decode_as_utils.h Combine Decode As and port preferences for tcp.port dissector table. 2016-10-08 02:44:53 +00:00
dissect_opts.c Add enabled protocol list for dissectors who are disabled by default 2016-12-24 02:30:21 +00:00
dissect_opts.h Add enabled protocol list for dissectors who are disabled by default 2016-12-24 02:30:21 +00:00
doxygen.cfg.in
export_object_ui.c Enable exporting objects with tshark 2016-12-02 16:07:35 +00:00
export_object_ui.h Enable exporting objects with tshark 2016-12-02 16:07:35 +00:00
export_pdu_ui_utils.c Allow create_tempfile to support a suffix. 2016-06-01 06:24:05 +00:00
export_pdu_ui_utils.h Implement Export PDU for tshark 2016-05-03 10:17:46 +00:00
file_dialog.h Add JSON export to Qt/GTK UI 2016-06-20 01:22:57 +00:00
firewall_rules.c Firewall rule fixups. 2016-06-06 06:27:47 +00:00
firewall_rules.h Qt: Firewall Rules dialog. 2016-06-01 23:37:25 +00:00
help_url.c extcap: set help page for all extcaps. 2016-12-20 08:23:11 +00:00
help_url.h ui: move filesystem code to wsutil/filesystem.c 2016-12-09 15:50:04 +00:00
iface_lists.c Restore interface selection after interface refresh 2017-03-22 05:03:27 +00:00
iface_lists.h ui: Update interfaces when when changing profile. 2015-12-02 11:33:24 +00:00
io_graph_item.c io_graph_item: fix false positive array subscript is above array bounds [-Werror=array-bounds] 2017-03-10 02:48:09 +00:00
io_graph_item.h Place variable declarations where they're used. 2016-09-07 01:43:22 +00:00
language.c Use "system" for "use system language", and don't try to print a null string. 2016-04-28 19:34:02 +00:00
language.h Use "system" for "use system language", and don't try to print a null string. 2016-04-28 19:34:02 +00:00
last_open_dir.h
main_statusbar.h
mcast_stream.c Revert "tap: change glib functions to wmem." 2016-06-19 10:47:10 +00:00
mcast_stream.h Fix crash in UDP Multicast Streams dialog 2015-11-27 21:15:11 +00:00
packet_list_utils.c Qt: Support "Resolve Names" with multiple custom column fields 2016-08-27 11:15:34 +00:00
packet_list_utils.h
persfilepath_opt.c
persfilepath_opt.h
preference_utils.c Internalize struct preference 2017-01-22 10:43:57 +00:00
preference_utils.h Refactor range preference. 2017-01-07 15:35:18 +00:00
profile.c Clean up some memory leaks in wsutil/filesystem.c 2017-02-19 01:27:14 +00:00
profile.h profile_name_is_valid() returns a malloced string [-Wcast-qual] 2016-01-21 02:32:46 +00:00
progress_dlg.h const gpointer -> gconstpointer 2016-02-16 05:10:49 +00:00
proto_hier_stats.c Walk up the tree view of Protocol Hierarchy Statistics to look for protocol matches. 2016-03-12 03:05:07 +00:00
proto_hier_stats.h
recent.c Fix various compile warnings turning error on Linux with gcc6 when 2017-03-19 12:27:12 +00:00
recent.h PluginIF: AdditionalToolbar 2017-02-24 08:12:46 +00:00
recent_utils.h
rtp_media.c
rtp_media.h Qt: fix jitter buffer management 2016-02-10 20:26:21 +00:00
rtp_stream.c Revert "tap: change glib functions to wmem." 2016-06-19 10:47:10 +00:00
rtp_stream.h SIP/SDP, RTP: Dissectors shows information about ED-137 related states of radio in info column/VoIP call flow 2016-12-18 11:55:03 +00:00
service_response_time.c
service_response_time.h
simple_dialog.h simple_dialog(.h): fix parameter 'Type' not found in the function declaration [-Wdocumentation] 2016-12-02 11:30:23 +00:00
software_update.c Qt+Win32: Make software updates more friendly. 2016-12-20 14:18:14 +00:00
software_update.h Qt+Win32: Make software updates more friendly. 2016-12-20 14:18:14 +00:00
ssl_key_export.c
ssl_key_export.h
tap-iax2-analysis.c Add the packet number to the packet_info structure, and use it. 2016-01-24 03:41:28 +00:00
tap-iax2-analysis.h
tap-rlc-graph.c Revert "tap: change glib functions to wmem." 2016-06-19 10:47:10 +00:00
tap-rlc-graph.h Always supply a g_mallocated error message from select_rlc_lte_session(). 2015-12-29 08:01:54 +00:00
tap-rtp-analysis.h Save RTP audio to file: RTP Stream Analysis dialog allows save audio for non G.711 codecs and mixed codecs 2016-12-15 05:16:29 +00:00
tap-rtp-common.c tap-rtp-common.c: set STAT_FLAG_WRONG_TIMESTAMP when timestamp sequence is wrong 2016-12-19 08:50:44 +00:00
tap-rtp-common.h
tap-sctp-analysis.c SCTP: find right assoc id 2016-10-25 16:24:51 +00:00
tap-sctp-analysis.h SCTP: find right assoc id 2016-10-25 16:24:51 +00:00
tap-sequence-analysis.c VoIP Calls/Flow Sequence: Fix of showing nodes from previous call 2016-12-15 05:16:56 +00:00
tap-sequence-analysis.h VoIP Calls/Flow Sequence: Fix of showing nodes from previous call 2016-12-15 05:16:56 +00:00
tap-tcp-stream.c Qt: modify RTT graph (handle GSO, SACK, etc), plus bug fixes 2017-01-20 00:35:34 +00:00
tap-tcp-stream.h Qt: Add Goodput graph (ACK rate), and minor bug fixes 2017-01-22 14:41:49 +00:00
tap_export_pdu.c Ensure to have a valid string pointer when writing OS SHB option 2016-07-26 13:48:40 +00:00
tap_export_pdu.h Implement Export PDU for tshark 2016-05-03 10:17:46 +00:00
text_import.c More checks for localtime() and gmtime() returning NULL. 2016-10-22 02:27:32 +00:00
text_import.h Make the Flex scanners and YACC parser in libraries reentrant. 2016-04-03 22:21:29 +00:00
text_import_scanner.h
text_import_scanner.l Include config.h at the very beginning of all Flex scanners. 2016-12-02 21:02:10 +00:00
time_shift.c Avoid unnecessary replacement source file floorl.c 2016-04-04 23:58:31 +00:00
time_shift.h
traffic_table_ui.c Qt: Conversation time column updates. 2016-09-02 23:53:37 +00:00
traffic_table_ui.h Qt: Conversation time column updates. 2016-09-02 23:53:37 +00:00
ui_util.h Move the declaration of packet_list_select_last_row() to ui/gtk/packet_list.h. 2016-12-12 21:12:58 +00:00
util.c Replace and remove host_ip_af() function 2016-04-08 20:49:22 +00:00
util.h
voip_calls.c Call Flow: Fix - Duration of segment of RTP flow is wrong in call flow. 2016-12-18 20:08:03 +00:00
voip_calls.h Qt: various fixes to VoIP calls / RTP player windows 2015-12-09 16:54:33 +00:00