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 <Samuel.Mehrbrodt@cib.de>
This commit is contained in:
Samuel Mehrbrodt
2020-02-17 07:40:45 +01:00
parent 9975147353
commit 89b80daec9
-7
View File
@@ -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;
}
}