diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2021-03-23 14:53:58 +0100 |
---|---|---|
committer | Tamás Zolnai <tamas.zolnai@collabora.com> | 2021-03-23 23:56:08 +0100 |
commit | bdbb5d0389642c0d445b5779fe2a18fda3e4a4d4 (patch) | |
tree | e44e01adee1316165285045f726ad67cb00d66d8 /sfx2 | |
parent | f36baa475515fd08b53c4a677e8fbd5cf0fec0a1 (diff) |
Revert "lok: switch to the correct view before any UI update is done
via SfxBindings."
This reverts commit 35b81a05c7c58d0db2276627a9387a738c409974.
Change-Id: I29adf767d2bf3fa0f19b13f8eae3d2464cd90601
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112997
Tested-by: Jenkins
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/bindings.cxx | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/sfx2/source/control/bindings.cxx b/sfx2/source/control/bindings.cxx index 0c430db5e184..aa565d9c4a96 100644 --- a/sfx2/source/control/bindings.cxx +++ b/sfx2/source/control/bindings.cxx @@ -48,9 +48,6 @@ #include <sfx2/viewfrm.hxx> #include <sfx2/objsh.hxx> #include <sfx2/msgpool.hxx> -#include <sfx2/viewsh.hxx> -#include <sfx2/lokhelper.hxx> -#include <comphelper/lok.hxx> #include <cstddef> #include <memory> @@ -1238,26 +1235,6 @@ bool SfxBindings::NextJob_Impl(Timer const * pTimer) SfxApplication *pSfxApp = SfxGetpApp(); - // Switch to the right view for state update. - if (comphelper::LibreOfficeKit::isActive()) - { - if( pDispatcher ) - { - SfxViewFrame* pFrame = pDispatcher->GetFrame(); - if (pFrame) - { - vcl::Window* pFrameWin = pFrame->GetWindow().GetFrameWindow(); - if (pFrameWin && pFrameWin->GetLOKNotifier()) { - const SfxViewShell* pView = dynamic_cast<const SfxViewShell*>(pFrameWin->GetLOKNotifier()); - if (pView) - { - SfxLokHelper::setView(pView->GetViewShellId().get()); - } - } - } - } - } - if( pDispatcher ) pDispatcher->Update_Impl(); |