phoneplugins/infowidgetplugin/infowidget/src/infowidgetnetworkhandler.cpp
changeset 50 377c906a8701
parent 46 bc5a64e5bc3c
child 52 a49bfe5190e4
equal deleted inserted replaced
46:bc5a64e5bc3c 50:377c906a8701
    63 bool InfoWidgetNetworkHandler::createSession()
    63 bool InfoWidgetNetworkHandler::createSession()
    64 {
    64 {
    65     DPRINT;
    65     DPRINT;
    66     bool success(false);
    66     bool success(false);
    67     if (!m_nwSession) {
    67     if (!m_nwSession) {
    68         try {
    68         QT_TRAP_THROWING(m_nwSession.reset(
    69             QT_TRAP_THROWING(m_nwSession.reset(
    69                 CreateL(*this, m_nwInfo)));
    70                     CreateL(*this, m_nwInfo)));
    70         if (m_nwSession) {
    71         } catch (const std::exception& ex) {
       
    72             DCRITICAL << ": exception " << ex.what(); 
       
    73         }
       
    74         
       
    75         if (!m_nwSession.isNull()) {
       
    76             DPRINT << ": session created"; 
    71             DPRINT << ": session created"; 
    77             success = true;
    72             success = true;
    78         }
    73         }
    79     } else {
    74     } else {
    80         DWARNING << ": session already created!"; 
    75         DWARNING << ": session already created!";