wsd/ClientSession.cpp | 5 +++++ 1 file changed, 5 insertions(+) New commits: commit 9655ed9274c536defb185ff475233ef73de94fe8 Author: Michael Meeks <michael.me...@collabora.com> AuthorDate: Thu Nov 8 02:35:44 2018 +0000 Commit: Tor Lillqvist <t...@collabora.com> CommitDate: Thu Nov 8 15:05:34 2018 +0100
Convert-to - cleanup after ourselves. Change-Id: I85de9721ac1b33d053b59fc36fc7c307206a0888 Reviewed-on: https://gerrit.libreoffice.org/63056 Reviewed-by: Tor Lillqvist <t...@collabora.com> Tested-by: Tor Lillqvist <t...@collabora.com> diff --git a/wsd/ClientSession.cpp b/wsd/ClientSession.cpp index 4753db07c..864863288 100644 --- a/wsd/ClientSession.cpp +++ b/wsd/ClientSession.cpp @@ -846,6 +846,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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits