summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorGiuseppe Castagno <giuseppe.castagno@acca-esse.eu>2015-12-31 12:04:13 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-01-21 08:15:10 +0000
commit936da92dd854a1d5c16e564fc62b14bee0214fe9 (patch)
tree62c9aaa5187c5c5f7542eae1e4b3d119386a3310 /svtools
parent68d351fff469d0ab75f817a4e217194735258da8 (diff)
Related tdf#96833: hide user and password for WebDAV servers...
...because they are asked for and stored in a successive user interaction. Change-Id: I09a3a1e59fe3819a28d7565e83b0db968dfee74b Reviewed-on: https://gerrit.libreoffice.org/21040 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org> (cherry picked from commit 3113ecb2fcb6d868a213c5dc978159e18f4e2efa) Reviewed-on: https://gerrit.libreoffice.org/21486 Reviewed-by: Giuseppe Castagno <giuseppe.castagno@acca-esse.eu> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/dialogs/PlaceEditDialog.cxx11
1 files changed, 8 insertions, 3 deletions
diff --git a/svtools/source/dialogs/PlaceEditDialog.cxx b/svtools/source/dialogs/PlaceEditDialog.cxx
index 19634b7990b3..b062b934e375 100644
--- a/svtools/source/dialogs/PlaceEditDialog.cxx
+++ b/svtools/source/dialogs/PlaceEditDialog.cxx
@@ -28,6 +28,7 @@ PlaceEditDialog::PlaceEditDialog(vcl::Window* pParent)
get( m_pEDServerName, "name" );
get( m_pLBServerType, "type" );
get( m_pEDUsername, "login" );
+ get( m_pFTUsernameLabel, "loginLabel" );
get( m_pBTOk, "ok" );
get( m_pBTCancel, "cancel" );
get( m_pBTDelete, "delete" );
@@ -61,6 +62,7 @@ PlaceEditDialog::PlaceEditDialog(vcl::Window* pParent, const std::shared_ptr<Pla
get( m_pEDServerName, "name" );
get( m_pLBServerType, "type" );
get( m_pEDUsername, "login" );
+ get( m_pFTUsernameLabel, "loginLabel" );
get( m_pBTOk, "ok" );
get( m_pBTCancel, "cancel" );
get( m_pBTDelete, "delete" );
@@ -120,6 +122,7 @@ void PlaceEditDialog::dispose()
m_pEDServerName.clear();
m_pLBServerType.clear();
m_pEDUsername.clear();
+ m_pFTUsernameLabel.clear();
m_pBTOk.clear();
m_pBTCancel.clear();
m_pBTDelete.clear();
@@ -333,9 +336,11 @@ IMPL_LINK_NOARG_TYPED( PlaceEditDialog, SelectTypeHdl, ListBox&, void )
m_xCurrentDetails->show();
- m_pCBPassword->Show( m_bShowPassword );
- m_pEDPassword->Show( m_bShowPassword );
- m_pFTPasswordLabel->Show( m_bShowPassword );
+ m_pCBPassword->Show( m_bShowPassword && m_xCurrentDetails->enableUserCredentials() );
+ m_pEDPassword->Show( m_bShowPassword && m_xCurrentDetails->enableUserCredentials() );
+ m_pFTPasswordLabel->Show( m_bShowPassword && m_xCurrentDetails->enableUserCredentials() );
+ m_pEDUsername->Show( m_xCurrentDetails->enableUserCredentials() );
+ m_pFTUsernameLabel->Show( m_xCurrentDetails->enableUserCredentials() );
SetSizePixel(GetOptimalSize());