Hi Primin,

Pirmin Walthert wrote:
.....

Hi Jerome


QtWengoPhone.cpp then calls readyForEvents() that is passed back through
control to model. In userProfileHandler I then have the following:

void UserProfileHandler::readyForEvents()
{
        if (_readyForEvents==false)
        {
                IMWrapperFactory::getFactory().startGaimFactory();
        }
                _readyForEvents=true;
                _currentUserProfile->readyForEvents();
                LOG_DEBUG("Connecting enabled!");
}

I think following will be a little bit safer:

void UserProfileHandler::readyForEvents()
{
        if (_readyForEvents==false)
        {
                _readyForEvents=true;
                _currentUserProfile->readyForEvents();
                IMWrapperFactory::getFactory().startGaimFactory();
                LOG_DEBUG("Connecting enabled!");
        }
}



Thanks
Vadim

_______________________________________________
Wengophone-devel mailing list
[email protected]
http://dev.openwengo.com/mailman/listinfo/wengophone-devel

Reply via email to