diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2018-09-19 00:58:59 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2018-10-28 02:10:55 +0200 |
commit | 871089ecca78d818dee5c588f1a9a5e975816f7c (patch) | |
tree | d0407569a36c91c45b14f809299411e48f4d9131 /svtools | |
parent | 0f190f50368816964b2a1b7bb58000ac1792d640 (diff) |
tdf#119209: Windows share has inappropriate server suggestion
Follow the same logic as HostDetailsContainer
Change-Id: I3de8b2fc07b9caef6b4d20ab89242137d738c522
Reviewed-on: https://gerrit.libreoffice.org/60732
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/dialogs/ServerDetailsControls.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/svtools/source/dialogs/ServerDetailsControls.cxx b/svtools/source/dialogs/ServerDetailsControls.cxx index fce35b75717b..2cc3d2ab4fe1 100644 --- a/svtools/source/dialogs/ServerDetailsControls.cxx +++ b/svtools/source/dialogs/ServerDetailsControls.cxx @@ -247,7 +247,8 @@ bool SmbDetailsContainer::setUrl( const INetURLObject& rUrl ) sPath = sFullPath.copy( nPos ); } - m_pDialog->m_xEDHost->set_text( rUrl.GetHost( ) ); + m_sHost = rUrl.GetHost( ); + m_pDialog->m_xEDHost->set_text( m_sHost ); m_pDialog->m_xEDShare->set_text( sShare ); m_pDialog->m_xEDRoot->set_text( sPath ); } @@ -266,6 +267,9 @@ void SmbDetailsContainer::show( bool bShow ) m_pDialog->m_xHostBox->show( bShow ); m_pDialog->m_xEDPort->set_sensitive( !bShow ); m_pDialog->m_xFTPort->set_sensitive( !bShow ); + + if ( bShow ) + m_pDialog->m_xEDHost->set_text( m_sHost ); } CmisDetailsContainer::CmisDetailsContainer(PlaceEditDialog* pParentDialog, OUString const & sBinding) : |