psi-im/psi — pull request #15 by lwid (2012-02-13 09:08:12+00:00)
Title: Fix for "Get rid of "Unable to retrieve your account information." dialogue"

A fix for https://github.com/psi-im/psi/issues/4

Problem was the "Unable to fetch vCard" dialogue popping up even when options.vcard.query-own-vcard-on-login was set to false. The cause for this was a logical error in the if-statement determining whether to fetch a vCard or not. If no vCard was available a fetch was performed no matter of the value of options.vcard.query-own-vcard-on-login.

This patch wraps the whole vCard update code in a if-statement which checks the options.vcard.query-own-vcard-on-login option.

Verified that this patch fixes the "Unable to retrieve your account information." issue when options.vcard.query-own-vcard-on-login is set to false.

(It would probably be nice to have a checkbox for this option within the ordinary settings but that's a different issue).