network: don't warn for invalid settings
g_warning() is for environment errors, not user errors. Not being able to click OK is enough to understand that something is wrong, and if not we should highlight the faulty setting, not spam the logs, expecially in the middle of digitation. Keep a log anyway, for debugging. https://bugzilla.gnome.org/show_bug.cgi?id=724312
This commit is contained in:
parent
f31dbd0271
commit
8b6f9afb72
3 changed files with 2 additions and 18 deletions
|
@ -350,10 +350,10 @@ validate (NetConnectionEditor *editor)
|
|||
if (!ce_page_validate (CE_PAGE (l->data), editor->connection, &error)) {
|
||||
valid = FALSE;
|
||||
if (error) {
|
||||
g_warning ("Invalid setting %s: %s", ce_page_get_title (CE_PAGE (l->data)), error->message);
|
||||
g_debug ("Invalid setting %s: %s", ce_page_get_title (CE_PAGE (l->data)), error->message);
|
||||
g_error_free (error);
|
||||
} else {
|
||||
g_warning ("Invalid setting %s", ce_page_get_title (CE_PAGE (l->data)));
|
||||
g_debug ("Invalid setting %s", ce_page_get_title (CE_PAGE (l->data)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue