From 89b80daec907a456f08946dd9ebbc6efbd9b5391 Mon Sep 17 00:00:00 2001 From: Samuel Mehrbrodt Date: Fri, 14 Feb 2020 17:01:46 +0100 Subject: [PATCH] Don't display reload as toggle command File->Reload was displayed with a checkbox, suggesting the command would toggle something. Of course it does not. So remove this code which makes the command appear as toggle command. Change-Id: I5dd87fd82524e211e0d3444b14bc22dc4469de2d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88731 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt --- sfx2/source/view/viewfrm.cxx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index 4d697710c0af..3534e2b889aa 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -931,13 +931,6 @@ void SfxViewFrame::StateReload_Impl( SfxItemSet& rSet ) { if ( !pSh->CanReload_Impl() || pSh->GetCreateMode() == SfxObjectCreateMode::EMBEDDED ) rSet.DisableItem(nWhich); - else - { - // If any ChildFrame is reloadable, the slot is enabled, - // so you can perform CTRL-Reload - rSet.Put( SfxBoolItem( nWhich, false)); - } - break; } }