GNOME Bugzilla – Bug 734472
Don't stop "red" error marking after first error
Last modified: 2014-08-13 16:40:27 UTC
In commit 62db29b3876b4a594fc2a0af7d553dbbf30424d6 (bug 734446), we mark entries with errors in red. Except that we stop after the first error in the page. We should carry on validating other settings instead.
Created attachment 283275 [details] [review] network: Fix compile-time warning Missing include.
Created attachment 283276 [details] [review] network: Don't stop validating when we get an error The previous code would stop validating when an error occurred which meant that when a page contained multiple errors, only the first one(s) to be checked would appear in red. Now, all the errors will appear in red.
Review of attachment 283275 [details] [review]: Looks good to me.
Review of attachment 283276 [details] [review]: There is something wrong with IPv4 netmask and metric. If I type something obviously wrong (like '####'), the field above becomes red but not the field with the garbage values.
Review of attachment 283276 [details] [review]: After talking to Bastien in #control-center on GIMPNet, this is caused by strtoul and strtol accepting garbage. Not a regression and we can address that in a separate bug. Otherwise looks OK to me.
Attachment 283275 [details] pushed as 117cf30 - network: Fix compile-time warning Attachment 283276 [details] pushed as d9d5124 - network: Don't stop validating when we get an error