I made a little progress! Jabber account is finally added to profile, but it crashes QuteCom. I use this code in QtAddWengoAccount.cpp:
UserProfile userProfile; userProfile.setSipAccount(sipAccount, false); userProfile.addIMAccount(jabberAccount); UserProfileFileStorage userProfileStorage(userProfile); userProfileStorage.save(sipAccount.getFullIdentity()); _cUserProfileHandler.setCurrentUserProfile(sipAccount.getFullIdentity(), sipAccount); It executes all this code, so sip and jabber accounts are created and current sip account is used. But after about 3 seconds, it crashes. But if you are fast enough, you can see the sip connected and jabber trying to connect in profile bar above contact list. If you start qutecom again, everything is fine, jabber and sip connects and jabber roster is loaded. Just as it should be. I tried commenting out the last line setCurrentUserProfile() to avod the crash and play with it a little. These are the results: 1. remove ~/.qutecom, start qutecom, create account 2. Select Log on from menu and choose just created account 3. Crash! 4. Start qutecom again, everything is ok 1. remove ~/.qutecom, start qutecom, create account 2. Close qutecom manually 3. Start qutecom again 4. Select Log on from menu and choose just created account 5. Everything is ok I don't understand this behaviour... any idea what might cause the crash? (And how to avoid it or fix it?)
signature.asc
Description: OpenPGP digital signature
_______________________________________________ QuteCom-dev mailing list [email protected] http://lists.qutecom.org/mailman/listinfo/qutecom-dev
