diff options
author | Tor Lillqvist <tml@collabora.com> | 2016-06-27 10:28:55 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2016-06-27 10:29:48 +0300 |
commit | e7ca62bbd485c5f450e720c8102db2ab9561429f (patch) | |
tree | f2b09161318e5e1cf71d70b1e64a46909966b095 | |
parent | 9f8bdd9e1dd954ad3be2c40e8919ec51bf129659 (diff) |
tdf#100222: Show the dialog just once even if both toggles were changed
Change-Id: If6058d68f80ebc3e235f0a681cfe3240985e2429
-rw-r--r-- | cui/source/options/optopencl.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/cui/source/options/optopencl.cxx b/cui/source/options/optopencl.cxx index 776bb0f0ccdd..e536445c7b6b 100644 --- a/cui/source/options/optopencl.cxx +++ b/cui/source/options/optopencl.cxx @@ -155,9 +155,6 @@ bool SvxOpenCLTabPage::FillItemSet( SfxItemSet* ) { officecfg::Office::Common::Misc::UseSwInterpreter::set(mpUseSwInterpreter->IsChecked(), batch); bModified = true; - - ScopedVclPtrInstance<MessageDialog> aWarnBox(this, CUI_RES(RID_SVXSTR_OPTIONS_RESTART), VclMessageType::Info); - aWarnBox->Execute(); } if (mpUseOpenCL->IsValueChangedFromSaved()) @@ -167,13 +164,14 @@ bool SvxOpenCLTabPage::FillItemSet( SfxItemSet* ) { maConfig.set(); bModified = true; - - ScopedVclPtrInstance<MessageDialog> aWarnBox(this, CUI_RES(RID_SVXSTR_OPTIONS_RESTART), VclMessageType::Info); - aWarnBox->Execute(); } if (bModified) + { + ScopedVclPtrInstance<MessageDialog> aWarnBox(this, CUI_RES(RID_SVXSTR_OPTIONS_RESTART), VclMessageType::Info); + aWarnBox->Execute(); batch->commit(); + } return bModified; } |