diff options
Diffstat (limited to 'desktop/source/lib/init.cxx')
-rw-r--r-- | desktop/source/lib/init.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 6a23444900b1..6dfa7cc28825 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -1136,13 +1136,9 @@ void CallbackFlushHandler::queue(const int type, const char* data) std::stringstream aOldStream(elem.second); boost::property_tree::read_json(aOldStream, aOldTree); const unsigned nOldDialogId = aOldTree.get<unsigned>("id", 0); - if (aOldTree.get<std::string>("action", "") == "invalidate" && + return aOldTree.get<std::string>("action", "") == "invalidate" && nLOKWindowId == nOldDialogId && - aOldTree.get<std::string>("rectangle", "").empty()) - { - return true; - } - return false; + aOldTree.get<std::string>("rectangle", "").empty(); }); // we found a invalidate-all window callback |