summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2017-11-29 19:54:15 +0530
committerJan Holesovsky <kendy@collabora.com>2017-11-30 17:40:59 +0100
commit24f908d9a1833779497f36f9f006c29f47986571 (patch)
tree8678bfd849f9c539d1e7972710155ea3658fc7a5
parent54aca54e3dfb3610e90ef109660e6357851f9666 (diff)
lokdialog: Compress DIALOG_CHILD callbacks
In complex dialogs, they flood the lok client otherwise with duplicate callbacks. Change-Id: I6ab1ef12b90caed22dfc464e18068f5830cb9532 Reviewed-on: https://gerrit.libreoffice.org/45542 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Tested-by: Jan Holesovsky <kendy@collabora.com>
-rw-r--r--desktop/source/lib/init.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 82f76bafe2c1..f0c970905a39 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -810,6 +810,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); });