wsd/DocumentBroker.cpp | 2 +- wsd/DocumentBroker.hpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)
New commits: commit 040a211d60c6eab8695cad4bee78b22f38428b77 Author: Ashod Nakashian <ashod.nakash...@collabora.co.uk> Date: Wed Jan 3 23:15:44 2018 -0500 wsd: set modified flag on the storage when set on the DocumentBroker Change-Id: Ieb4eb02f68f2d02ad88d6f59ad61de8f1e309670 Reviewed-on: https://gerrit.libreoffice.org/47365 Reviewed-by: Ashod Nakashian <ashnak...@gmail.com> Tested-by: Ashod Nakashian <ashnak...@gmail.com> diff --git a/wsd/DocumentBroker.cpp b/wsd/DocumentBroker.cpp index 53e0ae61..6a164533 100644 --- a/wsd/DocumentBroker.cpp +++ b/wsd/DocumentBroker.cpp @@ -1401,7 +1401,7 @@ void DocumentBroker::destroyIfLastEditor(const std::string& id) void DocumentBroker::setModified(const bool value) { - if(_isModified != value) + if (_isModified != value) { _isModified = value; Admin::instance().modificationAlert(_docKey, getPid(), value); diff --git a/wsd/DocumentBroker.hpp b/wsd/DocumentBroker.hpp index a56d3332..0e278150 100644 --- a/wsd/DocumentBroker.hpp +++ b/wsd/DocumentBroker.hpp @@ -248,6 +248,7 @@ public: bool isModified() const { return _isModified; } void setModified(const bool value); + /// Save the document if the document is modified. /// @param force when true, will force saving if there /// has been any recent activity after the last save. _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits