vcl/jsdialog/jsdialogbuilder.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 53017b90e6a61e2ae0873833ab5b647eec83f212 Author: Szymon Kłos <szymon.k...@collabora.com> AuthorDate: Fri Dec 6 11:18:59 2024 +0100 Commit: Szymon Kłos <szymon.k...@collabora.com> CommitDate: Thu Jan 2 15:51:30 2025 +0100 jsdialog: remember message dialog regression from commit 13af671fda1317175a93fd747e5455ce897ed167 jsdialog: share code for widget registry we want to remember message dialog when NOT present Signed-off-by: Szymon Kłos <szymon.k...@collabora.com> Change-Id: Ia072800d62745b47668ee81f4bee17b9fe24b5af Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177957 Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179618 Tested-by: Jenkins diff --git a/vcl/jsdialog/jsdialogbuilder.cxx b/vcl/jsdialog/jsdialogbuilder.cxx index 2d1c614e1d0c..bf7b10f7ce3b 100644 --- a/vcl/jsdialog/jsdialogbuilder.cxx +++ b/vcl/jsdialog/jsdialogbuilder.cxx @@ -1460,7 +1460,7 @@ void JSMessageDialog::RememberMessageDialog() static constexpr OUString sWidgetName = u"__DIALOG__"_ustr; OUString sWindowId = OUString::number(m_xMessageDialog->GetLOKWindowId()); auto aWidgetMap = JSInstanceBuilder::Widgets().Find(sWindowId); - if (!aWidgetMap || !aWidgetMap->Find(sWidgetName)) + if (aWidgetMap && aWidgetMap->Find(sWidgetName)) return; JSInstanceBuilder::InsertWindowToMap(sWindowId);