summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2022-10-01 17:11:44 -0800
committerJim Raykowski <raykowj@gmail.com>2022-10-30 04:25:57 +0100
commit14337ca8fe3ebc4fefbbf74b018f9b81fc5d9dfd (patch)
tree2bfd00f9e1b6d50ba1f21336470a69a81f855ff1 /sw
parent96bb91de5b00e08b42352dcf34195f92029f01b6 (diff)
tdf#151124 Make outline folding state change set doc modified state
true Change-Id: I70408e768d2214b2c0a5c736f9e6fd8da36d3611 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140855 Tested-by: Jenkins Reviewed-by: Jim Raykowski <raykowj@gmail.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/docvw/edtwin.cxx1
-rw-r--r--sw/source/uibase/utlui/content.cxx1
2 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx
index 89554aea9803..09d5fc6f0fe3 100644
--- a/sw/source/uibase/docvw/edtwin.cxx
+++ b/sw/source/uibase/docvw/edtwin.cxx
@@ -6846,6 +6846,7 @@ void SwEditWin::ToggleOutlineContentVisibility(const size_t nOutlinePos, const b
rSh.InvalidateOutlineContentVisibility();
rSh.GotoOutline(nOutlinePos);
+ rSh.SetModified();
GetView().GetDocShell()->Broadcast(SfxHint(SfxHintId::DocChanged));
}
diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx
index 1605a470d438..6e8b3cd0ba77 100644
--- a/sw/source/uibase/utlui/content.cxx
+++ b/sw/source/uibase/utlui/content.cxx
@@ -4578,6 +4578,7 @@ void SwContentTree::ExecuteContextMenuAction(const OString& rSelectedPopupEntry)
m_pActiveShell->GotoOutline(pCntFirst->GetOutlinePos());
grab_focus();
m_bIgnoreDocChange = false;
+ m_pActiveShell->SetModified();
m_pActiveShell->GetDoc()->GetDocShell()->Broadcast(SfxHint(SfxHintId::DocChanged));
}
break;