dbaccess/source/ui/dlg/CollectionView.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit a6dfb3245f657f4b05559737f256b3d85e523037 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Fri Oct 4 11:53:09 2019 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Fri Oct 4 20:37:07 2019 +0200 sSubFolder contents is always overwritten Change-Id: Ic2183a81f85dfec5361db9bf42174f2f9218ae5b Reviewed-on: https://gerrit.libreoffice.org/80204 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> 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!"); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits