equal
deleted
inserted
replaced
65 if (capability & TBrCtlDefs::ECapabilityLaunchViewer){ |
65 if (capability & TBrCtlDefs::ECapabilityLaunchViewer){ |
66 m_launchViewer = true; |
66 m_launchViewer = true; |
67 } |
67 } |
68 int master = !m_sessionManager->m_embedded; |
68 int master = !m_sessionManager->m_embedded; |
69 RProcess myProcess; |
69 RProcess myProcess; |
70 m_downloadMgr.ConnectL( myProcess.Identity(), *this, master ); |
70 |
|
71 TRAPD( errMngr, m_downloadMgr.ConnectL( myProcess.Identity(), *this, master )); |
|
72 if ( errMngr == KErrAlreadyExists && master ) { |
|
73 m_downloadMgr.ConnectL( myProcess.Identity(), *this, EFalse ); |
|
74 } |
|
75 |
71 if( !master ){ |
76 if( !master ){ |
72 // Browser is embedded. Downloads must be paused when the user closes |
77 // Browser is embedded. Downloads must be paused when the user closes |
73 // the embedded Browser (that is always started from the Launcher), and |
78 // the embedded Browser (that is always started from the Launcher), and |
74 // CDownloadMgrUiUserInteractions::OkToExitL() must not be called. |
79 // CDownloadMgrUiUserInteractions::OkToExitL() must not be called. |
75 // This behaviour can be indicated to DMgr before hand: |
80 // This behaviour can be indicated to DMgr before hand: |