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 */
|
/* 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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue