diff options
Diffstat (limited to 'sfx2/source/sidebar/SidebarDockingWindow.cxx')
-rw-r--r-- | sfx2/source/sidebar/SidebarDockingWindow.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sfx2/source/sidebar/SidebarDockingWindow.cxx b/sfx2/source/sidebar/SidebarDockingWindow.cxx index b74b96d79932..553d6df95455 100644 --- a/sfx2/source/sidebar/SidebarDockingWindow.cxx +++ b/sfx2/source/sidebar/SidebarDockingWindow.cxx @@ -21,6 +21,7 @@ #include <sfx2/sidebar/SidebarController.hxx> #include <sidebar/PanelDescriptor.hxx> +#include <comphelper/dispatchcommand.hxx> #include <comphelper/processfactory.hxx> #include <sfx2/lokhelper.hxx> #include <sfx2/bindings.hxx> @@ -276,6 +277,11 @@ bool SidebarDockingWindow::EventNotify(NotifyEvent& rEvent) Close(); return true; } + if (".uno:Undo" == aCommand || ".uno:Redo" == aCommand) + { + comphelper::dispatchCommand(aCommand, {}); + return true; + } } else if (MouseNotifyEvent::MOUSEBUTTONDOWN == nType) { |