diff options
author | Samuel Mehrbrodt <s.mehrbrodt@gmail.com> | 2013-12-02 08:58:21 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-12-02 05:03:01 -0600 |
commit | 4f743082c10c735db0e92fbe2921e95c5bd02c4a (patch) | |
tree | 05e5276b50d581ca565561fe2fc3277742691e2a | |
parent | 154643d59b6e01606356b7d2e627cbe4e20302e7 (diff) |
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@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | dbaccess/source/ui/dlg/CollectionView.cxx | 1 | ||||
-rw-r--r-- | svtools/source/contnr/fileview.cxx | 2 |
2 files changed, 2 insertions, 1 deletions
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 ) { |