[Libreoffice-commits] core.git: dbaccess/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Fri Oct 4 18:38:09 UTC 2019
dbaccess/source/ui/dlg/CollectionView.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit a6dfb3245f657f4b05559737f256b3d85e523037
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Oct 4 11:53:09 2019 +0100
Commit: Caolán McNamara <caolanm at 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 <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at 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!");
More information about the Libreoffice-commits
mailing list