sw/source/ui/fldui/fldedt.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+)
New commits: commit 0110cff15c3befb2021b7e18d21f538254c66103 Author: Heiko Tietze <tietze.he...@gmail.com> AuthorDate: Wed Apr 9 13:26:25 2025 +0200 Commit: Heiko Tietze <heiko.tie...@documentfoundation.org> CommitDate: Fri Apr 11 13:16:55 2025 +0200 Resolves tdf#101625 & tdf#137298 - Make Edit button functional Hide the button unless it makes sense to show some dialog. It either opens the user or the document properties now. Change-Id: I3b6fe600e6ddb725cfc638bf69cdddd290c2b810 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183919 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tie...@documentfoundation.org> diff --git a/sw/source/ui/fldui/fldedt.cxx b/sw/source/ui/fldui/fldedt.cxx index 7de2e44135e7..dddb92946658 100644 --- a/sw/source/ui/fldui/fldedt.cxx +++ b/sw/source/ui/fldui/fldedt.cxx @@ -157,6 +157,16 @@ void SwFieldEditDlg::Init() if( bMove ) rMgr.GoNext(); m_xPrevBT->set_sensitive( bMove ); + { + using namespace nsSwDocInfoSubType; + + const SwFieldTypesEnum aId(pCurField->GetTypeId()); + if ( (aId == SwFieldTypesEnum::Author) || + ((aId == SwFieldTypesEnum::DocumentInfo) && (pCurField->GetSubType() != (DI_CREATE|DI_SUB_AUTHOR)))) // except DocumentInfo > Author + m_xAddressBT->set_visible(true); + else + m_xAddressBT->set_visible(false); + } m_pSh->DestroyCursor(); m_pSh->EndAction();