[Libreoffice-commits] online.git: wsd/ClientSession.cpp
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Nov 8 02:36:31 UTC 2018
wsd/ClientSession.cpp | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit a0f83bd9b915ef3ea6dbdb9ed5ef39ead548276e
Author: Michael Meeks <michael.meeks at collabora.com>
AuthorDate: Thu Nov 8 02:35:44 2018 +0000
Commit: Michael Meeks <michael.meeks at collabora.com>
CommitDate: Thu Nov 8 02:36:08 2018 +0000
Convert-to - cleanup after ourselves.
Change-Id: I85de9721ac1b33d053b59fc36fc7c307206a0888
diff --git a/wsd/ClientSession.cpp b/wsd/ClientSession.cpp
index 762b5a907..9101c7237 100644
--- a/wsd/ClientSession.cpp
+++ b/wsd/ClientSession.cpp
@@ -854,6 +854,11 @@ bool ClientSession::handleKitToClientMessage(const char* buffer, const int lengt
// Now terminate.
docBroker->stop("Finished saveas handler.");
+
+ // Remove file and directory
+ Poco::Path path = docBroker->getDocKey();
+ Poco::File(path).remove();
+ Poco::File(path.makeParent()).remove();
}
return true;
More information about the Libreoffice-commits
mailing list