summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-09-07 21:52:49 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-09-08 08:51:57 +0000
commitda094918215757fa61e969f819576f49b91701ba (patch)
treeb00b4164f94a3e01b89141b239356cdfba98b4e0 /sw/inc
parentd83fc62ada63ea784faeee72a29b414e3efa61b3 (diff)
sw: fix newly created document being modified
After the document is created, an event is dispatched on the main loop that calls SfxPickList::Notify(), which modifies document properties. It tries to prevent setting the document to modified by calling SfxObjectShell::EnableSetModified(false), but Writer cunningly outwits it by simply having its own independent(?) modified flag that is set unconditionally in DocumentStatisticsManager::DocInfoChgd(). Let's assume that if the modified flag shouldn't be modified in SfxObjectShell, it shouldn't be modified in DocumentStatisticsManager. Somehow in 4.4 and 4.3 the same thing was going on, but it didn't result in a visibly enabled Save icon in the UI, but with 5.0 it does - cannot easily bisect why that changed due to tdf#91383. Change-Id: Id30fd831eb29910c9fb44ed3031bf8da23586bea (cherry picked from commit 5adc8ee343e5c32d30095bc4005b7b022016b745) Reviewed-on: https://gerrit.libreoffice.org/18388 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/IDocumentStatistics.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/inc/IDocumentStatistics.hxx b/sw/inc/IDocumentStatistics.hxx
index 7cb50ae7e5a9..9f953d485fd9 100644
--- a/sw/inc/IDocumentStatistics.hxx
+++ b/sw/inc/IDocumentStatistics.hxx
@@ -31,7 +31,7 @@ public:
/** DocInfo has changed (notify via DocShell):
make required fields update.
*/
- virtual void DocInfoChgd() = 0;
+ virtual void DocInfoChgd(bool isEnableSetModified) = 0;
/** Document - Statistics
*/