diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2018-11-27 09:26:27 -0500 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2019-04-30 18:06:28 +0200 |
commit | 5c726cdc20681ade4d303202fbd9d1a8773c5b2a (patch) | |
tree | 306c139fb1b2b7175995ae81216bfe708c7e81ce /include | |
parent | 259ce91cb63baa049bc57db79fd922ab5fd8be57 (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
Diffstat (limited to 'include')
-rw-r--r-- | include/sfx2/sidebar/SidebarDockingWindow.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sfx2/sidebar/SidebarDockingWindow.hxx b/include/sfx2/sidebar/SidebarDockingWindow.hxx index fbd29b3746f7..d03b04a41bef 100644 --- a/include/sfx2/sidebar/SidebarDockingWindow.hxx +++ b/include/sfx2/sidebar/SidebarDockingWindow.hxx @@ -56,6 +56,7 @@ private: void DoDispose(); const bool mbSidebarVisibleInLOK; + const SfxViewShell* mpOldViewShell; }; } } // end of namespace sfx2::sidebar |