https://bugs.documentfoundation.org/show_bug.cgi?id=152979

Rafael Lima <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |UNCONFIRMED
     Ever confirmed|1                           |0

--- Comment #14 from Rafael Lima <[email protected]> ---
(In reply to Michael Weghorn from comment #12)
> Does it still hang if you make `QtFrame::SetModal` do nothing?
> 
> diff --git a/vcl/qt5/QtFrame.cxx b/vcl/qt5/QtFrame.cxx
>  void QtFrame::SetModal(bool bModal)
>  {
> +    if (true)
> +        return;
> +

With the change above, the preview is shown as expected.

> And if that makes the problem go away: Does the freeze also disappear if you
> undo that change and add a sleep instead, like this:
>          // modality change is only effective if the window is hidden
>          if (bWasVisible)
> +        {
> +            QThread::msleep(500);
>              pChild->hide();
> +        }

Removing the previous change and then adding the sleep makes the problem go
away as well.

> Or maybe the `QThread::msleep(500);` would have to be added after the
> `pChild->hide();`, at least that's what the original workaround in LO did.

Using "QThread::msleep(500)" before and after "pChild->hide();" has the same
effect. In both cases the preview is shown after 0.5 seconds.

FWIW I tried with 100ms and it also worked... the wait is barely noticeable. If
we choose to reinstate this hack, may we could try with only 100ms.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to