summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-10-04 11:53:09 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-10-04 20:37:07 +0200
commita6dfb3245f657f4b05559737f256b3d85e523037 (patch)
tree4f622093daa18a03adff14e8a12a2d3335daf40a /dbaccess
parent3147eed16073b8e0682803894052f139f73172bd (diff)
sSubFolder contents is always overwritten
Change-Id: Ic2183a81f85dfec5361db9bf42174f2f9218ae5b Reviewed-on: https://gerrit.libreoffice.org/80204 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/dlg/CollectionView.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/dbaccess/source/ui/dlg/CollectionView.cxx b/dbaccess/source/ui/dlg/CollectionView.cxx
index c1156b446bf1..8838514e130d 100644
--- a/dbaccess/source/ui/dlg/CollectionView.cxx
+++ b/dbaccess/source/ui/dlg/CollectionView.cxx
@@ -116,7 +116,6 @@ IMPL_LINK_NOARG(OCollectionView, Save_Click, Button*, void)
return;
try
{
- OUString sSubFolder = m_pView->GetCurrentURL();
sal_Int32 nIndex = sName.lastIndexOf('/') + 1;
if ( nIndex )
{
@@ -136,7 +135,7 @@ IMPL_LINK_NOARG(OCollectionView, Save_Click, Button*, void)
m_pView->Initialize(m_xContent);
initCurrentPath();
}
- sSubFolder = sName.copy(0,nIndex-1);
+ OUString sSubFolder = sName.copy(0,nIndex-1);
sName = sName.copy(nIndex);
Reference<XHierarchicalNameContainer> xHier(m_xContent,UNO_QUERY);
OSL_ENSURE(xHier.is(),"XHierarchicalNameContainer not supported!");