sc/source/ui/view/tabcont.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
New commits: commit 4114218584bca3267aff474a7b55a9d5891fcce6 Author: Radhey Parekh <radhey.par...@gmail.com> AuthorDate: Thu Jan 5 23:39:39 2023 +0530 Commit: Heiko Tietze <heiko.tie...@documentfoundation.org> CommitDate: Mon Jan 16 07:59:16 2023 +0000 tdf#112417 Insert Sheet called when clicking anywhere on the footer Change-Id: I7524ac11729d1c80254c84c27211de3efaa622c9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145102 Reviewed-by: Heiko Tietze <heiko.tie...@documentfoundation.org> Tested-by: Jenkins diff --git a/sc/source/ui/view/tabcont.cxx b/sc/source/ui/view/tabcont.cxx index 67c9b74d7357..35e715c8283b 100644 --- a/sc/source/ui/view/tabcont.cxx +++ b/sc/source/ui/view/tabcont.cxx @@ -213,11 +213,8 @@ void ScTabControl::MouseButtonUp( const MouseEvent& rMEvt ) if( nMouseClickPageId == 0 ) { // Click in the area next to the existing tabs: - // #i70320# if several sheets are selected, deselect all except the current sheet, - // otherwise add new sheet - sal_uInt16 nSlot = ( GetSelectPageCount() > 1 ) ? FID_TAB_DESELECTALL : FID_INS_TABLE; SfxDispatcher* pDispatcher = pViewData->GetViewShell()->GetViewFrame()->GetDispatcher(); - pDispatcher->Execute( nSlot, SfxCallMode::SYNCHRON | SfxCallMode::RECORD ); + pDispatcher->Execute( FID_TAB_DESELECTALL, SfxCallMode::SYNCHRON | SfxCallMode::RECORD ); // forget page ID, to be really sure that the dialog is not called twice nMouseClickPageId = TabBar::PAGE_NOT_FOUND; }