diff options
author | Noel Power <noel.power@suse.com> | 2013-03-13 17:22:56 +0000 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-03-14 07:45:09 +0000 |
commit | 00e80df8fa4e6ae9f473376aa83e282e0fb5dbb0 (patch) | |
tree | 1c1638252a2f187e469ff3901ac3b973b6a9db05 /basctl | |
parent | 4fa3396564fd349a355cc8805d220f8b5d85580f (diff) |
make sure basic IDE cut/copy buttons on toolbar are refreshed fdo#30545
Change-Id: I483469f0b76ade7fb107c6f4ae5c28a4b03877b1
(cherry picked from commit 56f30adffa34e2f645646048747e3110a275b072)
Reviewed-on: https://gerrit.libreoffice.org/2708
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/baside2b.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx index ffa93e407a2a..9bac160f06fb 100644 --- a/basctl/source/basicide/baside2b.cxx +++ b/basctl/source/basicide/baside2b.cxx @@ -745,6 +745,14 @@ void EditorWindow::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint ) { DoDelayedSyntaxHighlight( rTextHint.GetValue() ); } + else if( rTextHint.GetId() == TEXT_HINT_VIEWSELECTIONCHANGED ) + { + if (SfxBindings* pBindings = GetBindingsPtr()) + { + pBindings->Invalidate( SID_CUT ); + pBindings->Invalidate( SID_COPY ); + } + } } } |