[Libreoffice-commits] core.git: desktop/source
Tamás Zolnai (via logerrit)
logerrit at kemper.freedesktop.org
Wed Feb 26 11:05:51 UTC 2020
desktop/source/lib/init.cxx | 19 +------------------
1 file changed, 1 insertion(+), 18 deletions(-)
New commits:
commit b833536ac6a95a58ecc975a7fd511ec77ff53634
Author: Tamás Zolnai <tamas.zolnai at collabora.com>
AuthorDate: Wed Feb 26 09:48:48 2020 +0100
Commit: Tamás Zolnai <tamas.zolnai at collabora.com>
CommitDate: Wed Feb 26 12:05:14 2020 +0100
Revert "jsdialog: Refresh dialog after action"
This change makes some cypress tests to fail, the
mobile wizard does not open or opens with an empty content.
It seems it causes an issue when mobile wizard is opened/closed
subsequently. One test case does not make this visible, but
it needs to run more test cases subsequently.
This reverts commit 0a35eafca9f74d2858bd3323d74d64813fa9107a.
Change-Id: Iccb6bb3d77270340ac9b36a68cae749098ddaa3a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89502
Tested-by: Tamás Zolnai <tamas.zolnai at collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai at collabora.com>
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 65776dc3f1fb..16f18e3434d9 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -3595,24 +3595,7 @@ static void doc_sendDialogEvent(LibreOfficeKitDocument* /*pThis*/, unsigned nWin
} catch(...) {}
// force resend
- const vcl::ILibreOfficeKitNotifier* pNotifier = pWindow->GetLOKNotifier();
- if (!pNotifier)
- {
- pWindow->Resize();
- return;
- }
-
- try
- {
- // Mobile.
- std::stringstream aStream;
- boost::property_tree::ptree aTree = pWindow->DumpAsPropertyTree();
- aTree.put("id", pWindow->GetLOKWindowId());
- boost::property_tree::write_json(aStream, aTree);
- const std::string message = aStream.str();
- pNotifier->libreOfficeKitViewCallback(LOK_CALLBACK_JSDIALOG, message.c_str());
- }
- catch (boost::property_tree::json_parser::json_parser_error&) {}
+ pWindow->Resize();
}
}
More information about the Libreoffice-commits
mailing list