summaryrefslogtreecommitdiff
path: root/vcl/source/window
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-09-29 16:33:23 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-09-29 17:26:46 +0200
commit814266e801fbc28ea431ac8b13bb40d8a8243cc7 (patch)
tree166c690138bac19f337943341b4ebefaf206d281 /vcl/source/window
parentf6998d9087c472954cc605c1308ec2df940dddd9 (diff)
send an event when the dialog is actually closed
The last data structures in vcl are only updated when the dialog is disposed. Especially mpFirstFrame is not updated until the dispose. So we need to wait until that point for the UI tests. Change-Id: I7432600e879c4c7dcffa445ac6b3cd228d0aa856
Diffstat (limited to 'vcl/source/window')
-rw-r--r--vcl/source/window/dialog.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx
index 910d6ee2aba5..07ceaaa4ceda 100644
--- a/vcl/source/window/dialog.cxx
+++ b/vcl/source/window/dialog.cxx
@@ -581,6 +581,13 @@ void Dialog::dispose()
mpActionArea.clear();
mpContentArea.clear();
SystemWindow::dispose();
+
+ css::uno::Reference< css::uno::XComponentContext > xContext(
+ comphelper::getProcessComponentContext() );
+ css::uno::Reference<css::frame::XGlobalEventBroadcaster> xEventBroadcaster(css::frame::theGlobalEventBroadcaster::get(xContext), css::uno::UNO_QUERY_THROW);
+ css::document::DocumentEvent aObject;
+ aObject.EventName = "DialogClosed";
+ xEventBroadcaster->documentEventOccured(aObject);
}
IMPL_LINK_NOARG_TYPED(Dialog, ImplAsyncCloseHdl, void*, void)