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
This commit is contained in:
committed by
Heiko Tietze
parent
77e0c4b5d2
commit
4114218584
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user