diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2022-08-16 12:35:56 +0200 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2022-08-16 22:28:16 +0200 |
commit | a65719ec67523cdfc294aeeda527b51ba4d2e17c (patch) | |
tree | 6be15161ae543ea726dc223297c7d236eb2c4dcd /vcl/inc/qt5/QtXAccessible.hxx | |
parent | 48baddac8f175e628a854f78304a19238e25d529 (diff) |
qt a11y: Clear XAccessible reference when disposing
The `XEventListener::disposing` doc
(in `./udkapi/com/sun/star/lang/XEventListener.idl`) says:
> /** gets called when the broadcaster is about to be disposed.
>
> <p>All listeners and all other objects, which reference the
> broadcaster should release the reference to the source.
> No method should be invoked anymore on this object (
> including XComponent::removeEventListener() ).
> </p>
>
> <p>This method is called for every listener registration
> of derived listener interfaced, not only for registrations
> at XComponent. </p>
> */
Therefore, clear the `XAccessible` reference held in
the associated `QtAccessibleWidget`
in `QtAccessibleEventListener::disposing`.
This also implies that `QtAccessibleWidget::isValid()`
(overriding the `QAccessibleInterface` method)
will return `false` from that point on.
Change-Id: I077dffe6ca3e887707d1f578e947ccf3c2c2a492
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138364
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'vcl/inc/qt5/QtXAccessible.hxx')
0 files changed, 0 insertions, 0 deletions