[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-3-0' - wsd/DocumentBroker.cpp wsd/DocumentBroker.hpp
Ashod Nakashian
ashod.nakashian at collabora.co.uk
Mon Jan 22 15:29:45 UTC 2018
wsd/DocumentBroker.cpp | 2 +-
wsd/DocumentBroker.hpp | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
New commits:
commit a96f4f60e43c9c94cd4fa98b794d338b223d769b
Author: Ashod Nakashian <ashod.nakashian at 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 <ashnakash at gmail.com>
Tested-by: Ashod Nakashian <ashnakash at gmail.com>
(cherry picked from commit 040a211d60c6eab8695cad4bee78b22f38428b77)
Reviewed-on: https://gerrit.libreoffice.org/48339
Reviewed-by: Jan Holesovsky <kendy at collabora.com>
Tested-by: Jan Holesovsky <kendy at collabora.com>
diff --git a/wsd/DocumentBroker.cpp b/wsd/DocumentBroker.cpp
index 6c6da1f5..91c17862 100644
--- a/wsd/DocumentBroker.cpp
+++ b/wsd/DocumentBroker.cpp
@@ -1408,7 +1408,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.
More information about the Libreoffice-commits
mailing list