summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2024-05-14 16:13:43 +0100
committerMichael Meeks <michael.meeks@collabora.com>2024-05-15 18:16:00 +0200
commit113dabb58dcab72ad17d5c2ab21a86e6825d90dc (patch)
tree6ea3b1b9c87bcaf37b64fb7c2caba2dc08487ac3 /desktop
parentc1565b8b94548ef85508b0302ef9299f18ff09be (diff)
lok: get faster ModifiedStatus from the core.
Gives a more responsive UI, closes a number of races, and helps us to make better decisions, more quickly on whether to save. Change-Id: I6e2548f06f715ba56ba75fd746273bdd57dc20dd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167635 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> (cherry picked from commit 44e79f02241fbc213462df03a37b621cb72f9d05) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167469 Tested-by: Jenkins Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/lib/init.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 635bca3b5de9..549319a7946c 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -5112,6 +5112,11 @@ void LibLibreOffice_Impl::dumpState(rtl::OStringBuffer &rState)
rState.append(static_cast<sal_Int64>(mOptionalFeatures), 16);
rState.append("\n\tCallbackData:\t0x");
rState.append(reinterpret_cast<sal_Int64>(mpCallback), 16);
+ rState.append("\n\tIsModified:\t");
+ if (SfxObjectShell::Current())
+ rState.append(SfxObjectShell::Current()->IsModified() ? "modified" : "unmodified");
+ else
+ rState.append("noshell");
// TODO: dump mInteractionMap
SfxLokHelper::dumpState(rState);
vcl::lok::dumpState(rState);