mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-06 01:10:33 +01:00
tui: fix a crash when connection list for activation is empty (rh #1119663)
When there are no connections for a device, do not add the header. https://bugzilla.redhat.com/show_bug.cgi?id=1119663
This commit is contained in:
parent
f610ae7265
commit
5aa204edec
1 changed files with 5 additions and 3 deletions
|
|
@ -503,9 +503,11 @@ nmt_connect_connection_list_rebuild (NmtConnectConnectionList *list)
|
|||
for (diter = nmt_devices; diter; diter = diter->next) {
|
||||
nmtdev = diter->data;
|
||||
|
||||
if (diter != nmt_devices)
|
||||
nmt_newt_listbox_append (listbox, "", NULL);
|
||||
nmt_newt_listbox_append (listbox, nmtdev->name, NULL);
|
||||
if (nmtdev->conns) {
|
||||
if (diter != nmt_devices)
|
||||
nmt_newt_listbox_append (listbox, "", NULL);
|
||||
nmt_newt_listbox_append (listbox, nmtdev->name, NULL);
|
||||
}
|
||||
|
||||
for (citer = nmtdev->conns; citer; citer = citer->next) {
|
||||
nmtconn = citer->data;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue