From 56f30adffa34e2f645646048747e3110a275b072 Mon Sep 17 00:00:00 2001 From: Noel Power Date: Wed, 13 Mar 2013 17:22:56 +0000 Subject: make sure basic IDE cut/copy buttons on toolbar are refreshed fdo#30545 Change-Id: I483469f0b76ade7fb107c6f4ae5c28a4b03877b1 --- basctl/source/basicide/baside2b.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'basctl') diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx index e0fa872528bf..8ab5dd94cd45 100644 --- a/basctl/source/basicide/baside2b.cxx +++ b/basctl/source/basicide/baside2b.cxx @@ -746,6 +746,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 ); + } + } } } -- cgit