network: Fix a crash when opening connection editor

This commit is contained in:
Mohammed Sadiq 2019-09-23 17:42:37 +05:30 committed by Georges Basile Stavracas Neto
parent a049ccc663
commit 3316f51866

View file

@ -295,17 +295,12 @@ ce_page_complete_init (CEPage *page,
} }
/* Update the connection with the new secrets */ /* Update the connection with the new secrets */
if (nm_connection_update_secrets (page->connection, if (!nm_connection_update_secrets (page->connection,
setting_name, setting_name,
secrets, secrets,
&update_error)) { &update_error))
g_warning ("Couldn't update secrets: %s", update_error->message); g_warning ("Couldn't update secrets: %s", update_error->message);
/* Success */
emit_initialized (page, NULL);
return;
}
g_warning ("Failed to update connection secrets due to an unknown error.");
emit_initialized (page, NULL); emit_initialized (page, NULL);
} }