summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorSzymon Kłos <eszkadev@gmail.com>2015-10-04 13:20:42 +0200
committerSzymon Kłos <eszkadev@gmail.com>2015-10-05 19:24:08 +0200
commit45817662f3f7a77433d6ee57f2c8926e3db3e675 (patch)
tree2ed08361c3caf41b1d33c7f56a089ac0a9bd6ecf /fpicker
parent3ff764c9f441c13330881520147b63bee23627b6 (diff)
Remember password after setting new service
Change-Id: I14ba319307f74b24fa474e742504b70c46539a08
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/office/RemoteFilesDialog.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/fpicker/source/office/RemoteFilesDialog.cxx b/fpicker/source/office/RemoteFilesDialog.cxx
index 7ee410e64221..0761888f21cc 100644
--- a/fpicker/source/office/RemoteFilesDialog.cxx
+++ b/fpicker/source/office/RemoteFilesDialog.cxx
@@ -697,8 +697,10 @@ void RemoteFilesDialog::SavePassword( const OUString& rURL, const OUString& rUse
try
{
- if( m_xMasterPasswd->isPersistentStoringAllowed() &&
- ( !bPersistent || m_xMasterPasswd->authorizateWithMasterPassword( Reference< XInteractionHandler>() ) ) )
+ if( !bPersistent ||
+ ( m_xMasterPasswd->isPersistentStoringAllowed()
+ && m_xMasterPasswd->authorizateWithMasterPassword( Reference< XInteractionHandler>() ) )
+ )
{
Reference< XInteractionHandler > xInteractionHandler(
InteractionHandler::createWithParent( m_xContext, 0 ),