From a6dfb3245f657f4b05559737f256b3d85e523037 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 4 Oct 2019 11:53:09 +0100 Subject: sSubFolder contents is always overwritten MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ic2183a81f85dfec5361db9bf42174f2f9218ae5b Reviewed-on: https://gerrit.libreoffice.org/80204 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- dbaccess/source/ui/dlg/CollectionView.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'dbaccess') 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 xHier(m_xContent,UNO_QUERY); OSL_ENSURE(xHier.is(),"XHierarchicalNameContainer not supported!"); -- cgit