diff options
author | Pranav Kant <pranavk@collabora.co.uk> | 2017-07-29 00:00:34 +0530 |
---|---|---|
committer | Pranav Kant <pranavk@collabora.co.uk> | 2017-10-02 10:57:51 +0530 |
commit | 2508ec1041098382524eb9b06fcb249af7f7a313 (patch) | |
tree | f6ddab0431b31885d60309c4d6c21e44a3dac47d /desktop | |
parent | ea03e6ef0a3847fc343eacee32836da84b863431 (diff) |
lokdialog: Suppress duplicate callbacks in flush handler
Change-Id: I94578b9e9c7fc2e6a9d14effe456d821768a0bcb
Diffstat (limited to 'desktop')
-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 9acff4501b31..7abb8359b9f5 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -758,6 +758,7 @@ void CallbackFlushHandler::queue(const int type, const char* data) case LOK_CALLBACK_SET_PART: case LOK_CALLBACK_TEXT_VIEW_SELECTION: case LOK_CALLBACK_INVALIDATE_HEADER: + case LOK_CALLBACK_DIALOG_INVALIDATE: { const auto& pos = std::find_if(m_queue.rbegin(), m_queue.rend(), [type] (const queue_type::value_type& elem) { return (elem.first == type); }); |