diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-06-30 23:23:36 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-07-02 04:42:09 +0200 |
commit | 7250bc4721b334714bb0fa1345211c83330f94b2 (patch) | |
tree | bddb706179b4d7eee297544576f1ee4ccb307043 /framework/inc | |
parent | 34c77d4bf3d2924c4ad26728d4c491b393fa0fc8 (diff) |
notify the clipboard terminate listener before any other terminate listener
Otherwise we may have destroyed a service that is needed to generate
one of the clipboard formats requested by the system clipboard.
Change-Id: Id05de3ac569e3ed38cd97efc4c48326bc6a8db0b
Reviewed-on: https://gerrit.libreoffice.org/39429
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'framework/inc')
-rw-r--r-- | framework/inc/services/desktop.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/framework/inc/services/desktop.hxx b/framework/inc/services/desktop.hxx index 2b07a2487d97..a77c816e9d2a 100644 --- a/framework/inc/services/desktop.hxx +++ b/framework/inc/services/desktop.hxx @@ -341,6 +341,15 @@ class Desktop : private cppu::BaseMutex, */ void impl_sendCancelTerminationEvent(const TTerminateListenerList& lCalledListener); + /** calls notifyTermination() on the clipboard listener + * + * The system clipboard may decide that it wants copies + * in several formats of the clipboard content requiring + * nearly all the services + * + */ + void impl_sendTerminateToClipboard(); + /** calls notifyTermination() on every registered termination listener. * * Note: Only normal termination listener (registered in list m_aListenerContainer |