diff options
author | Andras Timar <andras.timar@collabora.com> | 2016-09-07 21:00:35 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2016-11-26 15:14:26 +0100 |
commit | 8993c3d11e7ff433db98afa9906c755b7ee15ed6 (patch) | |
tree | 41bb5058ef4a4079e6229ba73f014151f5be0171 /cui | |
parent | b0b7d40c95363c8ca5d460fe603d6cb3e11729b8 (diff) |
check for read-only state of OpenCL settings
Reviewed-on: https://gerrit.libreoffice.org/28730
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
(cherry picked from commit 6ebca1d1094d8fd85e485e504e810a1954befcc3)
Change-Id: Ia3695d5e4901e527ef847a86e737f6c7eba5085f
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/optopencl.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cui/source/options/optopencl.cxx b/cui/source/options/optopencl.cxx index 2bf4cfecf673..a88ca124ad96 100644 --- a/cui/source/options/optopencl.cxx +++ b/cui/source/options/optopencl.cxx @@ -63,8 +63,10 @@ SvxOpenCLTabPage::SvxOpenCLTabPage(vcl::Window* pParent, const SfxItemSet& rSet) get(mpDrvVersion,"driverversion"); 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)); mpBlackListEdit->SetClickHdl(LINK(this, SvxOpenCLTabPage, BlackListEditHdl)); @@ -104,6 +106,9 @@ SvxOpenCLTabPage::SvxOpenCLTabPage(vcl::Window* pParent, const SfxItemSet& rSet) mpBlackList->SetTabs(aTabs, MAP_PIXEL); mpWhiteList->SetTabs(aTabs, MAP_PIXEL); + mpBlackListFrame->Enable(maConfig.mbUseOpenCL); + mpWhiteListFrame->Enable(maConfig.mbUseOpenCL); + } SvxOpenCLTabPage::~SvxOpenCLTabPage() |