aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2009-07-30 05:11:07 +0800
committerCosimo Cecchi <cosimoc@gnome.org>2009-07-30 06:13:21 +0800
commit6bd8c2d7d8589d3d0019599c75de05b20ae18f44 (patch)
treeac93e134590197dec4e2f2a597a4ccf3d80d97c4 /libempathy
parent3c966e213e602fc6bb289a30b62f12122dcbdee9 (diff)
downloadgsoc2013-empathy-6bd8c2d7d8589d3d0019599c75de05b20ae18f44.tar
gsoc2013-empathy-6bd8c2d7d8589d3d0019599c75de05b20ae18f44.tar.gz
gsoc2013-empathy-6bd8c2d7d8589d3d0019599c75de05b20ae18f44.tar.bz2
gsoc2013-empathy-6bd8c2d7d8589d3d0019599c75de05b20ae18f44.tar.lz
gsoc2013-empathy-6bd8c2d7d8589d3d0019599c75de05b20ae18f44.tar.xz
gsoc2013-empathy-6bd8c2d7d8589d3d0019599c75de05b20ae18f44.tar.zst
gsoc2013-empathy-6bd8c2d7d8589d3d0019599c75de05b20ae18f44.zip
Ignore default value for required params
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.
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-account-settings.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libempathy/empathy-account-settings.c b/libempathy/empathy-account-settings.c
index 21109d261..1c5bc719a 100644
--- a/libempathy/empathy-account-settings.c
+++ b/libempathy/empathy-account-settings.c
@@ -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;
}