Kaydet (Commit) 9f369309 authored tarafından Szymon Kłos's avatar Szymon Kłos

PlaceEditDialog: user name filled in the auth message box

Change-Id: I85f0e3fdb91c2494797ef63a85579b3f0fc7ed6e
üst bc564e46
...@@ -360,6 +360,17 @@ IMPL_LINK_NOARG( CmisDetailsContainer, RefreshReposHdl ) ...@@ -360,6 +360,17 @@ IMPL_LINK_NOARG( CmisDetailsContainer, RefreshReposHdl )
{ {
OUString sBindingUrl = m_pEDBinding->GetText().trim( ); OUString sBindingUrl = m_pEDBinding->GetText().trim( );
OUString sEncodedUsername = "";
if ( !m_sUsername.isEmpty( ) )
{
sEncodedUsername = rtl::Uri::encode(m_sUsername,
rtl_UriCharClassUserinfo,
rtl_UriEncodeKeepEscapes,
RTL_TEXTENCODING_UTF8 );
sEncodedUsername += "@";
}
// Clean the listbox // Clean the listbox
m_pLBRepository->Clear( ); m_pLBRepository->Clear( );
m_aRepoIds.clear( ); m_aRepoIds.clear( );
...@@ -373,7 +384,7 @@ IMPL_LINK_NOARG( CmisDetailsContainer, RefreshReposHdl ) ...@@ -373,7 +384,7 @@ IMPL_LINK_NOARG( CmisDetailsContainer, RefreshReposHdl )
rtl_UriCharClassRelSegment, rtl_UriCharClassRelSegment,
rtl_UriEncodeKeepEscapes, rtl_UriEncodeKeepEscapes,
RTL_TEXTENCODING_UTF8 ); RTL_TEXTENCODING_UTF8 );
sUrl = "vnd.libreoffice.cmis://" + sEncodedBinding; sUrl = "vnd.libreoffice.cmis://" + sEncodedUsername + sEncodedBinding;
} }
// Get the Content // Get the Content
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment