[Libreoffice-commits] core.git: dbaccess/source svtools/source
Samuel Mehrbrodt
s.mehrbrodt at gmail.com
Mon Dec 2 03:03:22 PST 2013
dbaccess/source/ui/dlg/CollectionView.cxx | 1 +
svtools/source/contnr/fileview.cxx | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 4f743082c10c735db0e92fbe2921e95c5bd02c4a
Author: Samuel Mehrbrodt <s.mehrbrodt at gmail.com>
Date: Mon Dec 2 08:58:21 2013 +0100
fdo#34170 Disable deleting in the native Open Dialog
Change-Id: I0ccd4b06b2db399711004c3e6505a28353604aeb
Reviewed-on: https://gerrit.libreoffice.org/6892
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 09f4f16..d43c93a 100644
--- a/dbaccess/source/ui/dlg/CollectionView.cxx
+++ b/dbaccess/source/ui/dlg/CollectionView.cxx
@@ -94,6 +94,7 @@ OCollectionView::OCollectionView( Window * pParent
m_aView.SetDoubleClickHdl( LINK( this, OCollectionView, Dbl_Click_FileView ) );
m_aView.EnableAutoResize();
+ m_aView.EnableDelete(true);
m_aUp.SetClickHdl( LINK( this, OCollectionView, Up_Click ) );
m_aNewFolder.SetClickHdl( LINK( this, OCollectionView, NewFolder_Click ) );
m_aPB_OK.SetClickHdl( LINK( this, OCollectionView, Save_Click ) );
diff --git a/svtools/source/contnr/fileview.cxx b/svtools/source/contnr/fileview.cxx
index a4f671f..e97f64c 100644
--- a/svtools/source/contnr/fileview.cxx
+++ b/svtools/source/contnr/fileview.cxx
@@ -644,7 +644,7 @@ ViewTabListBox_Impl::ViewTabListBox_Impl( Window* pParentWin,
mnSearchIndex ( 0 ),
mbResizeDisabled ( sal_False ),
mbAutoResize ( sal_False ),
- mbEnableDelete ( sal_True ),
+ mbEnableDelete ( sal_False ),
mbEnableRename ( sal_True ),
mbShowHeader ( (nFlags & FILEVIEW_SHOW_NONE) == 0 )
{
More information about the Libreoffice-commits
mailing list