desktop/source/app/app.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 74a3a035143b471c3edd2392b44c68c8695dcc23
Author: Markus Mohrhard <[email protected]>
Date: Wed Aug 2 05:39:40 2017 +0200
updater: flush the configuration changes before we call execv
Without this the external configuration writer thread might not have
written the config yet.
Change-Id: I361fd8a7ee102a8ca50899fb644a0745ed3386ca
Reviewed-on: https://gerrit.libreoffice.org/40659
Reviewed-by: Markus Mohrhard <[email protected]>
Tested-by: Markus Mohrhard <[email protected]>
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx
index c6a467682496..fe89eeb3b628 100644
--- a/desktop/source/app/app.cxx
+++ b/desktop/source/app/app.cxx
@@ -1436,6 +1436,10 @@ int Desktop::Main()
officecfg::Office::Update::Update::OldBuildID::set(aBuildID,
batch);
officecfg::Office::Update::Update::UpdateRunning::set(true,
batch);
batch->commit();
+
+ // make sure the change is written to the configuration before
we start the update
+ css::uno::Reference<css::util::XFlushable>
xFlushable(css::configuration::theDefaultProvider::get(xContext), UNO_QUERY);;
+ xFlushable->flush();
// avoid the old oosplash staying around
CloseSplashScreen();
update();
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits