diff options
-rw-r--r-- | svtools/source/dialogs/PlaceEditDialog.cxx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/svtools/source/dialogs/PlaceEditDialog.cxx b/svtools/source/dialogs/PlaceEditDialog.cxx index cdea1e8a1fe2..7f9ffa576ab0 100644 --- a/svtools/source/dialogs/PlaceEditDialog.cxx +++ b/svtools/source/dialogs/PlaceEditDialog.cxx @@ -64,6 +64,7 @@ PlaceEditDialog::PlaceEditDialog(vcl::Window* pParent, const std::shared_ptr<Pla get( m_pBTOk, "ok" ); get( m_pBTCancel, "cancel" ); get( m_pBTDelete, "delete" ); + get( m_pBTRepoRefresh, "repositoriesRefresh" ); get( m_pTypeGrid, "TypeGrid" ); get( m_pCBPassword, "rememberPassword" ); get( m_pEDPassword, "password" ); @@ -91,13 +92,17 @@ PlaceEditDialog::PlaceEditDialog(vcl::Window* pParent, const std::shared_ptr<Pla bSuccess = m_aDetailsContainers[i]->setUrl( rUrl ); if ( bSuccess ) { - m_pLBServerType->SelectEntryPos( i ); - SelectTypeHdl( m_pLBServerType ); - // Fill the Username field if ( rUrl.HasUserData( ) ) + { m_pEDUsername->SetText( INetURLObject::decode( rUrl.GetUser( ), INetURLObject::DECODE_WITH_CHARSET ) ); + m_aDetailsContainers[i]->setUsername( INetURLObject::decode( rUrl.GetUser( ), + INetURLObject::DECODE_WITH_CHARSET ) ); + } + + m_pLBServerType->SelectEntryPos( i ); + SelectTypeHdl( m_pLBServerType ); } } |