vcl/qt5/QtBuilder.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 1bcc1f5a00fb7de95ffca1b2d7b8bdb2d58576a8 Author: Michael Weghorn <[email protected]> AuthorDate: Thu Oct 31 23:25:21 2024 +0100 Commit: Michael Weghorn <[email protected]> CommitDate: Fri Nov 1 10:15:13 2024 +0100 tdf#130857 qt weld: Actually set link button URI as URI Fix copy paste error: Take the value for the "uri" property whose existence was just checked, not the "label" one again as a few lines above. Change-Id: I1bf1251c14ba9dbda2b2f4ea73d35b612f4d0bb0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175888 Reviewed-by: Michael Weghorn <[email protected]> Tested-by: Jenkins diff --git a/vcl/qt5/QtBuilder.cxx b/vcl/qt5/QtBuilder.cxx index 88a26661bbad..330774715bbb 100644 --- a/vcl/qt5/QtBuilder.cxx +++ b/vcl/qt5/QtBuilder.cxx @@ -220,7 +220,7 @@ QObject* QtBuilder::makeObject(QObject* pParent, std::u16string_view sName, cons if (rMap.contains(u"label"_ustr)) pLabel->setDisplayText(toQString(rMap[u"label"_ustr])); if (rMap.contains(u"uri"_ustr)) - pLabel->setUri(toQString(rMap[u"label"_ustr])); + pLabel->setUri(toQString(rMap[u"uri"_ustr])); pObject = pLabel; }
