summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorRadhey Parekh <radhey.parekh@gmail.com>2023-01-05 23:39:39 +0530
committerHeiko Tietze <heiko.tietze@documentfoundation.org>2023-01-16 07:59:16 +0000
commit4114218584bca3267aff474a7b55a9d5891fcce6 (patch)
tree26e937d94339b76d63824f5ee1a33cb7b7b40929 /sc/source
parent77e0c4b5d255c34ccf6cd3977a90ee3575abc081 (diff)
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.tietze@documentfoundation.org> Tested-by: Jenkins
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/ui/view/tabcont.cxx5
1 files changed, 1 insertions, 4 deletions
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;
}