vcl: make get_id safe for disposed windows.
commit303c46e2394f6b744f0df5e8e55a8e1cd8e22a91
authorMichael Meeks <michael.meeks@collabora.com>
Fri, 9 Jul 2021 14:14:50 +0000 (9 15:14 +0100)
committerNoel Grandin <noel.grandin@collabora.co.uk>
Tue, 13 Jul 2021 13:46:52 +0000 (13 15:46 +0200)
tree3e8537cfa9f0085ef3a0d3463265d9a6e414f539
parentb862ec6ac16f3e02be7845bb0db7a77250cb587d
vcl: make get_id safe for disposed windows.

crash from:
findChild(vcl::Window*, rtl::OUString const&, bool)      include/rtl/ustring.hxx:1744
WindowUIObject::get_visible_child(rtl::OUString const&)  /vcl/source/uitest/uiobject.cxx:463
lcl_sendDialogEvent ...

Change-Id: Ic1756c7b03f2dee9780fb1a735917f1d0fc11876
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118691
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
vcl/source/window/window.cxx