Kaydet (Commit) 903e6075 authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: tdf#100732 hang closing Print Preview with X-icon on menubar

triggered by change...

commit f9bb1341
Author: Juergen Funk <juergen.funk_ml@cib.de>
Date:   Fri May 13 10:42:17 2016 +0200

    tdf#99815 use XNotifyingDispatch in sfx2

which allowed the problem introduced by...

commit d0c3c24d
Author: Kohei Yoshida <kohei.yoshida@gmail.com>
Date:   Wed Jun 6 01:28:55 2012 -0400

    Check if the system window has a close handler, and if yes, call it.

    This allows the close event in the preview window to be handled in a
    custom fashion, instead of having it call the normal "close window"
    command.

to show up

Change-Id: I5c46fb7a49ae44fd748b5b7192aeb951c7d65191
üst 30f81c01
...@@ -186,6 +186,15 @@ void SAL_CALL CloseDispatcher::dispatchWithNotification(const css::util::URL& ...@@ -186,6 +186,15 @@ void SAL_CALL CloseDispatcher::dispatchWithNotification(const css::util::URL&
{ {
// The closing frame has its own close handler. Call it instead. // The closing frame has its own close handler. Call it instead.
m_pSysWindow->GetCloseHdl().Call(*m_pSysWindow); m_pSysWindow->GetCloseHdl().Call(*m_pSysWindow);
aWriteLock.clear();
// <- SAFE ------------------------------
implts_notifyResultListener(
xListener,
css::frame::DispatchResultState::SUCCESS,
css::uno::Any());
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment