[Libreoffice-commits] core.git: vcl/source
Szymon KÅos (via logerrit)
logerrit at kemper.freedesktop.org
Mon Dec 28 17:44:56 UTC 2020
vcl/source/window/dialog.cxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 2b824fa229a8095f9509f8305fe81ae86bb1a52d
Author: Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Thu Dec 10 15:35:53 2020 +0100
Commit: Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Mon Dec 28 18:44:04 2020 +0100
jsdialog: export dialog id
Change-Id: I406d64ec8e19661ab258908e29245bc7da245b7b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107558
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108408
Tested-by: Szymon Kłos <szymon.klos at collabora.com>
diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx
index 25d1f146f6b4..da1d4a5bce24 100644
--- a/vcl/source/window/dialog.cxx
+++ b/vcl/source/window/dialog.cxx
@@ -1648,6 +1648,11 @@ void Dialog::DumpAsPropertyTree(tools::JsonWriter& rJsonWriter)
if (!pActionArea->IsVisible())
rJsonWriter.put("collapsed", "true");
}
+
+ OUString sDialogId = OStringToOUString(GetHelpId(), RTL_TEXTENCODING_ASCII_US);
+ sal_Int32 nStartPos = sDialogId.lastIndexOf('/');
+ nStartPos = nStartPos >= 0 ? nStartPos + 1 : 0;
+ rJsonWriter.put("dialogid", sDialogId.copy(nStartPos));
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
More information about the Libreoffice-commits
mailing list