wireshark/ui/qt/models
Guy Harris 8e76178fcd Fix reporting of interface-list-fetching errors.
If the attempt to fetch the list of local interfaces failed, the model
will be empty, so "model is empty" doesn't imply "no interfaces found".
First, check whether there was an error, and report the error string;
otherwise, if the list is empty, report "No interfaces found." (and fix
the capitalization while we're at it) and, otherwise, return an empty
string.

Also, if pcap support wasn't configured in at compile time, skip all
that, and just return a string indicating that.

Change-Id: I498226888272e1bdede2355cc902f8a74b0cce72
Reviewed-on: https://code.wireshark.org/review/36446
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2020-03-16 06:51:50 +00:00
..
astringlist_list_model.cpp Fix build and deprecation warnings with Qt 5.14 2020-01-10 08:42:21 +00:00
astringlist_list_model.h Qt: Rework Resolved Addresses dialog 2019-09-01 09:02:51 +00:00
cache_proxy_model.cpp Qt: Switch models and DataPrinter to new-style signals and slots. 2018-12-24 07:38:21 +00:00
cache_proxy_model.h Fix comment end after SPDX identifier 2018-05-01 06:56:37 +00:00
coloring_rules_delegate.cpp Qt: Switch models and DataPrinter to new-style signals and slots. 2018-12-24 07:38:21 +00:00
coloring_rules_delegate.h spdx: use consistent formatting for GPL-2.0-or-later 2018-03-09 17:32:36 +00:00
coloring_rules_model.cpp UI: Fix compilation with Qt 5.14 2019-12-21 20:25:51 +00:00
coloring_rules_model.h Qt: Fix various LGTM.com reported issues 2019-11-14 22:54:29 +00:00
column_list_model.cpp Qt: Fill in our item delegate editor backgrounds. 2020-03-03 06:19:02 +00:00
column_list_model.h Qt: Consolidate mimedata usage 2019-11-03 15:45:34 +00:00
credentials_model.cpp UI: Fix compilation with Qt 5.14 2019-12-21 20:25:51 +00:00
credentials_model.h Qt: Fix various LGTM.com reported issues 2019-11-14 22:54:29 +00:00
decode_as_delegate.cpp Qt: Add missing breaks. 2020-03-03 22:14:22 +00:00
decode_as_delegate.h Fix comment end after SPDX identifier 2018-05-01 06:56:37 +00:00
decode_as_model.cpp Qt: Cleanup space inside parentheses 2019-11-17 20:43:10 +00:00
decode_as_model.h Constification, to remove some compiler warnings. 2019-03-17 21:09:34 +00:00
dissector_tables_model.cpp Qt: Cleanup space inside parentheses 2019-11-17 20:43:10 +00:00
dissector_tables_model.h replace SPDX identifier GPL-2.0+ with GPL-2.0-or-later. 2018-02-08 14:57:36 +00:00
enabled_protocols_model.cpp UI: Fix compilation with Qt 5.14 2019-12-21 20:25:51 +00:00
enabled_protocols_model.h Qt: Filter enabled/disabled protocols 2019-10-28 19:01:45 +00:00
expert_info_model.cpp Qt: Cleanup space inside parentheses 2019-11-17 20:43:10 +00:00
expert_info_model.h Constification, to remove some compiler warnings. 2019-03-17 17:35:53 +00:00
expert_info_proxy_model.cpp Qt: Cleanup space inside parentheses 2019-11-17 20:43:10 +00:00
expert_info_proxy_model.h replace SPDX identifier GPL-2.0+ with GPL-2.0-or-later. 2018-02-08 14:57:36 +00:00
export_objects_model.cpp Qt: Refactor ExportObjectsDialog 2019-11-22 05:10:16 +00:00
export_objects_model.h Qt: Refactor ExportObjectsDialog 2019-11-22 05:10:16 +00:00
fileset_entry_model.cpp Qt: Cleanup space inside parentheses 2019-11-17 20:43:10 +00:00
fileset_entry_model.h replace SPDX identifier GPL-2.0+ with GPL-2.0-or-later. 2018-02-08 14:57:36 +00:00
filter_list_model.cpp Qt: Fix profile zip import on Windows 2020-02-29 10:15:29 +00:00
filter_list_model.h Qt: Fix override for FilterModel 2019-10-29 20:22:04 +00:00
info_proxy_model.cpp Qt: Cleanup space inside parentheses 2019-11-17 20:43:10 +00:00
info_proxy_model.h replace SPDX identifier GPL-2.0+ with GPL-2.0-or-later. 2018-02-08 14:57:36 +00:00
interface_sort_filter_model.cpp Qt: Cleanup space inside parentheses 2019-11-17 20:43:10 +00:00
interface_sort_filter_model.h Fix comment end after SPDX identifier 2018-05-01 06:56:37 +00:00
interface_tree_cache_model.cpp Qt: Cleanup space inside parentheses 2019-11-17 20:43:10 +00:00
interface_tree_cache_model.h Fix comment end after SPDX identifier 2018-05-01 06:56:37 +00:00
interface_tree_model.cpp Fix reporting of interface-list-fetching errors. 2020-03-16 06:51:50 +00:00
interface_tree_model.h More interface view cleanups. 2018-08-12 01:56:23 +00:00
numeric_value_chooser_delegate.cpp Qt: Cleanup space inside parentheses 2019-11-17 20:43:10 +00:00
numeric_value_chooser_delegate.h Fix comment end after SPDX identifier 2018-05-01 06:56:37 +00:00
packet_list_model.cpp Qt: Fix bug causing hidden columns to be displayed 2020-03-15 12:07:06 +00:00
packet_list_model.h Qt: Speedup Packetlist 2019-11-19 14:18:11 +00:00
packet_list_record.cpp Qt: Do not display alerts on repeated failed reads 2020-02-28 04:54:15 +00:00
packet_list_record.h Qt: Do not display alerts on repeated failed reads 2020-02-28 04:54:15 +00:00
path_chooser_delegate.cpp Qt: Cleanup space inside parentheses 2019-11-17 20:43:10 +00:00
path_chooser_delegate.h Qt: Switch models and DataPrinter to new-style signals and slots. 2018-12-24 07:38:21 +00:00
percent_bar_delegate.cpp Fix comment end after SPDX identifier 2018-05-01 06:56:37 +00:00
percent_bar_delegate.h Fix comment end after SPDX identifier 2018-05-01 06:56:37 +00:00
pref_delegate.cpp Qt: Fill in our item delegate editor backgrounds. 2020-03-03 06:19:02 +00:00
pref_delegate.h replace SPDX identifier GPL-2.0+ with GPL-2.0-or-later. 2018-02-08 14:57:36 +00:00
pref_models.cpp Qt: Cleanup space inside parentheses 2019-11-17 20:43:10 +00:00
pref_models.h Qt: Fix Preference dialog translation 2019-08-09 11:03:07 +00:00
profile_model.cpp Qt: Fix profile zip import on Windows 2020-02-29 10:15:29 +00:00
profile_model.h Qt: Add Shortcut methods for active profile 2019-10-28 15:06:01 +00:00
proto_tree_model.cpp Qt: Cleanup space inside parentheses 2019-11-17 20:43:10 +00:00
proto_tree_model.h replace SPDX identifier GPL-2.0+ with GPL-2.0-or-later. 2018-02-08 14:57:36 +00:00
related_packet_delegate.cpp Qt: Fix related packet delegate 2020-01-10 04:59:07 +00:00
related_packet_delegate.h Qt: Fix related packet delegate 2020-01-10 04:59:07 +00:00
resolved_addresses_models.cpp Qt: fix missing IP hosts in Resolved Addresses dialog 2020-02-04 04:12:11 +00:00
resolved_addresses_models.h Qt: Rework Resolved Addresses dialog 2019-09-01 09:02:51 +00:00
sparkline_delegate.cpp Qt: Cleanup space inside parentheses 2019-11-17 20:43:10 +00:00
sparkline_delegate.h Fix comment end after SPDX identifier 2018-05-01 06:56:37 +00:00
supported_protocols_model.cpp ModelHelperTreeItem: Rename appendChild -> prependChild 2018-02-11 16:56:07 +00:00
supported_protocols_model.h replace SPDX identifier GPL-2.0+ with GPL-2.0-or-later. 2018-02-08 14:57:36 +00:00
timeline_delegate.cpp Fix comment end after SPDX identifier 2018-05-01 06:56:37 +00:00
timeline_delegate.h Fix comment end after SPDX identifier 2018-05-01 06:56:37 +00:00
tree_model_helpers.h Qt: Fix warning and remove dead code 2019-07-11 13:06:34 +00:00
uat_delegate.cpp Qt: Fill in our UAT delegate editor backgrounds. 2020-03-13 04:38:01 +00:00
uat_delegate.h Qt: IO Graph correct color selection 2019-01-16 18:40:10 +00:00
uat_model.cpp Qt: Cleanup space inside parentheses 2019-11-17 20:43:10 +00:00
uat_model.h Qt: move method to apply/undo UAT changes to UatModel 2019-01-29 23:33:46 +00:00
url_link_delegate.cpp Qt: Use a lighter link color in dark mode. 2019-06-25 20:31:41 +00:00
url_link_delegate.h tap: add credentials tap. 2019-06-26 07:09:54 +00:00
voip_calls_info_model.cpp Qt: Add macro for g_list_next for C++ 2019-08-30 13:37:25 +00:00
voip_calls_info_model.h Qt: Rework VOIP Dialog context menu 2019-08-02 19:14:55 +00:00