check for read-only state of OpenCL settings
Change-Id: Ia3695d5e4901e527ef847a86e737f6c7eba5085f Reviewed-on: https://gerrit.libreoffice.org/28730 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
parent
df3dbec57e
commit
6ebca1d109
@ -51,8 +51,10 @@ SvxOpenCLTabPage::SvxOpenCLTabPage(vcl::Window* pParent, const SfxItemSet& rSet)
|
||||
get(mpOclNotUsed,"openclnotused");
|
||||
|
||||
mpUseSwInterpreter->Check(officecfg::Office::Common::Misc::UseSwInterpreter::get());
|
||||
mpUseSwInterpreter->Enable(!officecfg::Office::Common::Misc::UseSwInterpreter::isReadOnly());
|
||||
|
||||
mpUseOpenCL->Check(maConfig.mbUseOpenCL);
|
||||
mpUseOpenCL->Enable(!officecfg::Office::Common::Misc::UseOpenCL::isReadOnly());
|
||||
mpUseOpenCL->SetClickHdl(LINK(this, SvxOpenCLTabPage, EnableOpenCLHdl));
|
||||
|
||||
bool bCLUsed = opencl::GPUEnv::isOpenCLEnabled();
|
||||
|
Loading…
x
Reference in New Issue
Block a user