From 4f743082c10c735db0e92fbe2921e95c5bd02c4a Mon Sep 17 00:00:00 2001 From: Samuel Mehrbrodt Date: Mon, 2 Dec 2013 08:58:21 +0100 Subject: [PATCH] fdo#34170 Disable deleting in the native Open Dialog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I0ccd4b06b2db399711004c3e6505a28353604aeb Reviewed-on: https://gerrit.libreoffice.org/6892 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- dbaccess/source/ui/dlg/CollectionView.cxx | 1 + svtools/source/contnr/fileview.cxx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dbaccess/source/ui/dlg/CollectionView.cxx b/dbaccess/source/ui/dlg/CollectionView.cxx index 09f4f1680fa1..d43c93ab473b 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 a4f671f2eb2c..e97f64cdf7c1 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 ) {