summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2018-11-27 09:26:27 -0500
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-07-26 15:22:23 +0200
commitb01f4eb13e15d5149379561e9608bed5d670271b (patch)
tree6d3294727c1354800e1a6b22e85614735a53fc8c /include
parent3cb02bcee8d5f5550952967f9d40475d2f08b61b (diff)
LOK: sidebar: publish notifications to the correct view
The ViewShell, which represents the view in question and therefore which view gets the window notifications, is incorrect when the sidebar is first created upon creating/attaching a new view. This leads us to a workaround to make sure that we publish notifications to the correct view. We also have to hide the sidebar instead of closing because the workaround wouldn't work when re-creating the sidebar on an existing view. See comments in code. Change-Id: I9d3be901688291b04d634b68e1e20c7add77381f Reviewed-on: https://gerrit.libreoffice.org/73516 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/sfx2/sidebar/SidebarDockingWindow.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sfx2/sidebar/SidebarDockingWindow.hxx b/include/sfx2/sidebar/SidebarDockingWindow.hxx
index 5e54f00b53ad..e54d55f2b791 100644
--- a/include/sfx2/sidebar/SidebarDockingWindow.hxx
+++ b/include/sfx2/sidebar/SidebarDockingWindow.hxx
@@ -23,6 +23,8 @@
#include <rtl/ref.hxx>
+class SfxViewShell;
+
namespace svt { class AcceleratorExecute; }
namespace sfx2 { namespace sidebar {
@@ -65,6 +67,7 @@ private:
void DoDispose();
const bool mbSidebarVisibleInLOK;
+ const SfxViewShell* mpOldViewShell;
};
} } // end of namespace sfx2::sidebar