diff options
Diffstat (limited to 'framework/source/dispatch/loaddispatcher.cxx')
-rw-r--r-- | framework/source/dispatch/loaddispatcher.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/framework/source/dispatch/loaddispatcher.cxx b/framework/source/dispatch/loaddispatcher.cxx index 836fcae3c60f..49d2a496e723 100644 --- a/framework/source/dispatch/loaddispatcher.cxx +++ b/framework/source/dispatch/loaddispatcher.cxx @@ -92,12 +92,9 @@ css::uno::Any LoadDispatcher::impl_dispatch( const css::util::URL& rURL, } css::uno::Reference< css::frame::XFrame > xBaseFrame(m_xOwnerFrame.get(), css::uno::UNO_QUERY); - if (!xBaseFrame.is()) - { - if (xListener.is()) - xListener->dispatchFinished( - css::frame::DispatchResultEvent(xThis, css::frame::DispatchResultState::FAILURE, css::uno::Any())); - } + if (!xBaseFrame.is() && xListener.is()) + xListener->dispatchFinished( + css::frame::DispatchResultEvent(xThis, css::frame::DispatchResultState::FAILURE, css::uno::Any())); // OK ... now the internal loader seems to be usable for new requests // and our owner frame seems to be valid for such operations. |