diff options
author | Jim Raykowski <raykowj@gmail..com> | 2019-07-25 00:16:04 -0800 |
---|---|---|
committer | Jim Raykowski <raykowj@gmail.com> | 2019-07-25 18:05:44 +0200 |
commit | 3c7efab4e72d6f044a3ace34c06d2dfdfafbe42b (patch) | |
tree | efd7b9412396061c9ce5a821b3ba0ab2b1a4bed1 /svx/source | |
parent | e354681e5d5d21b4ad0d435193810922df7ec7a0 (diff) |
tdf#47807 Invalidate bindings to Undo Redo
This patch reverts the previous commit made for this and provides a new
fix.
Change-Id: I487ecf0a7564f1130ef9a42e893e73185701d8c9
Reviewed-on: https://gerrit.libreoffice.org/76287
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/svdraw/sdrundomanager.cxx | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/svx/source/svdraw/sdrundomanager.cxx b/svx/source/svdraw/sdrundomanager.cxx index 5d13d8e5e8a8..78e72e76196a 100644 --- a/svx/source/svdraw/sdrundomanager.cxx +++ b/svx/source/svdraw/sdrundomanager.cxx @@ -18,10 +18,7 @@ */ #include <svx/sdrundomanager.hxx> -#include <svx/svxids.hrc> -#include <sfx2/bindings.hxx> #include <sfx2/objsh.hxx> -#include <sfx2/viewfrm.hxx> #include <svl/hint.hxx> SdrUndoManager::SdrUndoManager() @@ -149,21 +146,4 @@ void SdrUndoManager::EmptyActionsChanged() } } -void SdrUndoManager::AddUndoAction( std::unique_ptr<SfxUndoAction> pAction, bool bTryMerg ) -{ - EditUndoManager::AddUndoAction( std::move(pAction), bTryMerg); - - if (m_pDocSh) - { - SfxViewFrame* pViewFrame = SfxViewFrame::GetFirst( m_pDocSh ); - while ( pViewFrame ) - { - pViewFrame->GetBindings().Invalidate( SID_UNDO ); - pViewFrame->GetBindings().Invalidate( SID_REDO ); - pViewFrame = SfxViewFrame::GetNext( *pViewFrame, m_pDocSh ); - } - } -} - - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |