diff options
author | Marco Cecchetti <marco.cecchetti@collabora.com> | 2020-07-15 13:01:33 +0200 |
---|---|---|
committer | Marco Cecchetti <marco.cecchetti@collabora.com> | 2021-04-14 11:44:27 +0200 |
commit | 9dda49734b65875d7b916a1867d86f8c161b32e8 (patch) | |
tree | 20b73577154df297ca97f360b684b9cce23bc800 /sc/source | |
parent | 348595440143b210f55bfa541ab3f853d468f19f (diff) |
lok: sc: Desktop: Function wizard isn't properly async
Open another view of the same spreadsheet when the function dialog is
open. Note how the document in the new view can't be edited.
This patch avoids to have a view locked after creation when in an
other view the formula dialog is open.
See also commit 009d275.
Change-Id: Ie51f414c4ad83ef20526d10be3251e174158096c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98823
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114060
Tested-by: Jenkins
Reviewed-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/view/tabvwshc.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sc/source/ui/view/tabvwshc.cxx b/sc/source/ui/view/tabvwshc.cxx index 208623b1c4cb..2249f25decb2 100644 --- a/sc/source/ui/view/tabvwshc.cxx +++ b/sc/source/ui/view/tabvwshc.cxx @@ -121,12 +121,13 @@ std::shared_ptr<SfxModelessDialogController> ScTabViewShell::CreateRefDialogCont if ( nCurRefDlgId != nSlotId ) { - // the dialog has been opened in a different view - // -> lock the dispatcher for this view (modal mode) + if (!(comphelper::LibreOfficeKit::isActive() && nSlotId == SID_OPENDLG_FUNCTION)) + { + // the dialog has been opened in a different view + // -> lock the dispatcher for this view (modal mode) - if (!comphelper::LibreOfficeKit::isActive()) GetViewData().GetDispatcher().Lock( true ); // lock is reset when closing dialog - + } return nullptr; } |