network: Fix a crash when opening connection editor
This commit is contained in:
parent
a049ccc663
commit
3316f51866
1 changed files with 5 additions and 10 deletions
|
@ -295,17 +295,12 @@ ce_page_complete_init (CEPage *page,
|
|||
}
|
||||
|
||||
/* Update the connection with the new secrets */
|
||||
if (nm_connection_update_secrets (page->connection,
|
||||
setting_name,
|
||||
secrets,
|
||||
&update_error)) {
|
||||
g_warning ("Couldn't update secrets: %s", update_error->message);
|
||||
/* Success */
|
||||
emit_initialized (page, NULL);
|
||||
return;
|
||||
}
|
||||
if (!nm_connection_update_secrets (page->connection,
|
||||
setting_name,
|
||||
secrets,
|
||||
&update_error))
|
||||
g_warning ("Couldn't update secrets: %s", update_error->message);
|
||||
|
||||
g_warning ("Failed to update connection secrets due to an unknown error.");
|
||||
emit_initialized (page, NULL);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue