]> git.0d.be Git - empathy.git/commitdiff
Ignore default value for required params
authorCosimo Cecchi <cosimoc@gnome.org>
Wed, 29 Jul 2009 21:11:07 +0000 (23:11 +0200)
committerCosimo Cecchi <cosimoc@gnome.org>
Wed, 29 Jul 2009 22:13:21 +0000 (00:13 +0200)
Parameters should never have both the default and the required flags
set, as required means the user has to fill in a value. When this
happens anyway, the default dlag should be ignored, so we can avoid
looking up the default value when checking for an account settings'
validity.

libempathy/empathy-account-settings.c

index 21109d261eb0ee352ae9e1fab2e8220bee39ae06..1c5bc719ad20e0d0700d10a0fe864bb4a961f40e 100644 (file)
@@ -1072,10 +1072,6 @@ empathy_account_settings_is_valid (EmpathyAccountSettings *settings)
             continue;
         }
 
-      /* see if there's a default value */
-      if (empathy_account_settings_get_default (settings, current))
-        continue;
-
       missed = TRUE;
       break;
     }