diff options
author | Pranav Kant <pranavk@collabora.co.uk> | 2017-11-29 19:54:15 +0530 |
---|---|---|
committer | Pranav Kant <pranavk@collabora.co.uk> | 2017-11-30 01:33:11 +0530 |
commit | 34f7659e3232e8e491b02f67cba503505fa79fd2 (patch) | |
tree | a2f94c4b2ee433bc137491c8112a0b83a25b8db9 | |
parent | 584a73ce23706c1e0dfbf32b4dbdbe6c79fb0ef2 (diff) |
lokdialog: Compress DIALOG_CHILD callbacks
In complex dialogs, they flood the lok client otherwise with duplicate
callbacks.
Change-Id: I6ab1ef12b90caed22dfc464e18068f5830cb9532
-rw-r--r-- | desktop/source/lib/init.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 243aba70c5b5..0bfa4c7d9317 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -787,6 +787,7 @@ void CallbackFlushHandler::queue(const int type, const char* data) case LOK_CALLBACK_TEXT_VIEW_SELECTION: case LOK_CALLBACK_INVALIDATE_HEADER: case LOK_CALLBACK_DIALOG: + case LOK_CALLBACK_DIALOG_CHILD: { const auto& pos = std::find_if(m_queue.rbegin(), m_queue.rend(), [type] (const queue_type::value_type& elem) { return (elem.first == type); }); |