diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2020-09-28 09:07:43 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2020-09-28 09:33:18 +0200 |
commit | e080b8af04eff9a36ee81a5a4747a31f992ab71d (patch) | |
tree | 43b0d2df183a76372f1dfd13b9672b2fcbb1d8a5 | |
parent | 09aa1c17e1e7e1d77ffb17a116d399f9cf169747 (diff) |
ClientSession: clean up copy&paste
dialogevent and formfieldevent has the same handler, do that at a single
place.
Change-Id: I4e0f7b36484f6ef65539616c0fe81a331c9caa98
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103529
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
-rw-r--r-- | wsd/ClientSession.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/wsd/ClientSession.cpp b/wsd/ClientSession.cpp index 44b3f0271..cb26a8f64 100644 --- a/wsd/ClientSession.cpp +++ b/wsd/ClientSession.cpp @@ -687,7 +687,7 @@ bool ClientSession::_handleInput(const char *buffer, int length) docBroker->saveAsToStorage(getId(), "", wopiFilename, true); return true; } - else if (tokens.equals(0, "dialogevent")) + else if (tokens.equals(0, "dialogevent") || tokens.equals(0, "formfieldevent")) { return forwardToChild(firstLine, docBroker); } @@ -695,10 +695,6 @@ bool ClientSession::_handleInput(const char *buffer, int length) { return forwardToChild(std::string(buffer, length), docBroker); } - else if (tokens.equals(0, "formfieldevent")) - { - return forwardToChild(firstLine, docBroker); - } else if (tokens[0] == "outlinestate" || tokens[0] == "downloadas" || tokens[0] == "getchildid" || |