[Libreoffice-commits] core.git: cui/source
Andras Timar
andras.timar at collabora.com
Sat Sep 10 09:16:11 UTC 2016
cui/source/options/optopencl.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 6ebca1d1094d8fd85e485e504e810a1954befcc3
Author: Andras Timar <andras.timar at collabora.com>
Date: Wed Sep 7 21:00:35 2016 +0200
check for read-only state of OpenCL settings
Change-Id: Ia3695d5e4901e527ef847a86e737f6c7eba5085f
Reviewed-on: https://gerrit.libreoffice.org/28730
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/cui/source/options/optopencl.cxx b/cui/source/options/optopencl.cxx
index 6b5d1f9..41cdb66 100644
--- a/cui/source/options/optopencl.cxx
+++ b/cui/source/options/optopencl.cxx
@@ -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();
More information about the Libreoffice-commits
mailing list