NetworkManager/src/nmtui
Jan Vaclav c9fefcd095 nmtui: correctly check that connection list is non-empty
Previously, the "edit" or "delete" buttons were clickable even
if there were no available connections, which was not expected
and caused an assertion to fail when clicked. This is because
the connections list could contain connections that were later
filtered out and not displayed in the final list, but the check
did not take this into account.

Make it so that the buttons are clickable only if we *actually*
have any available connections to edit or delete.

Fixes: 3bda3fb60c ('nmtui: initial import of nmtui')
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1991
2024-09-02 12:08:00 +00:00
..
meson.build nmtui: add veth page 2024-06-28 11:01:51 +00:00
nm-editor-bindings.c nmtui: wifi: support WPA Enterprise 2022-09-28 09:09:09 +02:00
nm-editor-bindings.h nmtui: wifi: support WPA Enterprise 2022-09-28 09:09:09 +02:00
nm-editor-utils.c all: use the new NMSettingConnection port-type property 2024-01-23 08:21:16 +01:00
nm-editor-utils.h nmtui: replace occurrences of master/slave with controller/port in internal code 2023-07-25 14:22:25 +02:00
nmt-8021x-fields.c nmtui: 802.1x: add expert TLS settings 2024-03-16 21:30:36 +01:00
nmt-8021x-fields.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-address-list.c all: use nm_strv_empty_new() helper 2023-11-30 15:53:21 +01:00
nmt-address-list.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-connect-connection-list.c nmtui: include veth devices in activation dialog 2024-06-28 11:01:51 +00:00
nmt-connect-connection-list.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-device-entry.c nmtui: fix memory leak 2022-12-22 11:48:59 +01:00
nmt-device-entry.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-edit-connection-list.c nmtui: correctly check that connection list is non-empty 2024-09-02 12:08:00 +00:00
nmt-edit-connection-list.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-editor-grid.c all: use NM_MAX() instead of MAX() 2023-11-15 09:32:21 +01:00
nmt-editor-grid.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-editor-page-device.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nmt-editor-page-device.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-editor-page.c nmtui: replace occurrences of master/slave with controller/port in internal code 2023-07-25 14:22:25 +02:00
nmt-editor-page.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-editor-section.c doc: replace all (allow-none) annotations by (optional) and/or (nullable) 2023-03-27 11:49:43 +02:00
nmt-editor-section.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-editor.c nmtui: add veth page 2024-06-28 11:01:51 +00:00
nmt-editor.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-ip-entry.c glib-aux: rename IP address related helpers from "nm-inet-utils.h" 2022-08-25 19:05:51 +02:00
nmt-ip-entry.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-mac-entry.c all: differentiate NM_CLONED_MAC_IS_SPECIAL() for wired/wireless 2023-11-16 13:07:53 +01:00
nmt-mac-entry.h all: differentiate NM_CLONED_MAC_IS_SPECIAL() for wired/wireless 2023-11-16 13:07:53 +01:00
nmt-mtu-entry.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nmt-mtu-entry.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-page-bond-port.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nmt-page-bond-port.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-page-bond.c src: drop most slave references from the code 2024-08-09 15:47:32 +02:00
nmt-page-bond.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-page-bridge-port.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nmt-page-bridge-port.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-page-bridge.c src: drop most slave references from the code 2024-08-09 15:47:32 +02:00
nmt-page-bridge.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-page-dsl.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nmt-page-dsl.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-page-ethernet.c all: differentiate NM_CLONED_MAC_IS_SPECIAL() for wired/wireless 2023-11-16 13:07:53 +01:00
nmt-page-ethernet.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-page-infiniband.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nmt-page-infiniband.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-page-ip-tunnel.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nmt-page-ip-tunnel.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-page-ip4.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nmt-page-ip4.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-page-ip6.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nmt-page-ip6.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-page-macsec.c nmtui: add MACsec support 2022-09-28 09:09:09 +02:00
nmt-page-macsec.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-page-ppp.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nmt-page-ppp.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-page-team-port.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nmt-page-team-port.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-page-team.c src: drop most slave references from the code 2024-08-09 15:47:32 +02:00
nmt-page-team.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-page-veth.c nmtui: add veth page 2024-06-28 11:01:51 +00:00
nmt-page-veth.h nmtui: add veth page 2024-06-28 11:01:51 +00:00
nmt-page-vlan.c all: differentiate NM_CLONED_MAC_IS_SPECIAL() for wired/wireless 2023-11-16 13:07:53 +01:00
nmt-page-vlan.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-page-wifi.c all: differentiate NM_CLONED_MAC_IS_SPECIAL() for wired/wireless 2023-11-16 13:07:53 +01:00
nmt-page-wifi.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-page-wireguard.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nmt-page-wireguard.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-password-dialog.c libnmc: allow user input in ECHO mode for 2FA challenges 2024-02-21 11:31:49 +01:00
nmt-password-dialog.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-password-fields.c clang-format: reformat code with clang-format 15.0.4-1.fc37 2022-11-23 09:17:21 +01:00
nmt-password-fields.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-port-list.c src: drop most slave references from the code 2024-08-09 15:47:32 +02:00
nmt-port-list.h nmtui: replace occurrences of master/slave with controller/port in internal code 2023-07-25 14:22:25 +02:00
nmt-route-editor.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nmt-route-editor.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-route-entry.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nmt-route-entry.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-route-table.c all: use NM_MAX() instead of MAX() 2023-11-15 09:32:21 +01:00
nmt-route-table.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-utils.c doc: replace all (allow-none) annotations by (optional) and/or (nullable) 2023-03-27 11:49:43 +02:00
nmt-utils.h tui: move from "clients/tui/" to "src/nmtui/" 2021-03-15 17:10:54 +01:00
nmt-widget-list.c doc: replace all (allow-none) annotations by (optional) and/or (nullable) 2023-03-27 11:49:43 +02:00
nmt-widget-list.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-wireguard-peer-editor.c nmtui: fix WireGuard peer editor empty fields 2024-02-02 12:53:22 +01:00
nmt-wireguard-peer-editor.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmt-wireguard-peer-list.c src: drop most master references from the code 2024-08-09 15:47:32 +02:00
nmt-wireguard-peer-list.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmtui-connect.c all: use NM_MAX() instead of MAX() 2023-11-15 09:32:21 +01:00
nmtui-connect.h tui: move from "clients/tui/" to "src/nmtui/" 2021-03-15 17:10:54 +01:00
nmtui-edit.c libnm: use nm_setting_connection_get_controller() where possible 2024-03-12 09:54:31 +01:00
nmtui-edit.h nmtui: replace occurrences of master/slave with controller/port in internal code 2023-07-25 14:22:25 +02:00
nmtui-hostname.c newt-form: remove escape-exits property 2022-08-25 14:12:07 +02:00
nmtui-hostname.h tui: move from "clients/tui/" to "src/nmtui/" 2021-03-15 17:10:54 +01:00
nmtui-radio.c tui: Enable/disable Wi-Fi and WWAN radios 2023-06-14 09:58:11 +02:00
nmtui-radio.h tui: Enable/disable Wi-Fi and WWAN radios 2023-06-14 09:58:11 +02:00
nmtui.c tui: Enable/disable Wi-Fi and WWAN radios 2023-06-14 09:58:11 +02:00
nmtui.h tui: move from "clients/tui/" to "src/nmtui/" 2021-03-15 17:10:54 +01:00
README.md all: add some README.md files describing the purpose of our sources 2021-08-19 17:51:11 +02:00

nmtui

The curses-based text user interface of NetworkManager. It uses the D-Bus API of NetworkManager (via libnm).

This is a NetworkManager client applications that can edit connection profiles and activate them, by providing a text UI.

It uses libnewt.

See: