sfx2/source/dialog/passwd.cxx | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit d0d07f66a70f4554b53c53528b6993d08b655990 Author: Balazs Varga <balazs.varga.ext...@allotropia.de> AuthorDate: Tue Jan 7 14:59:57 2025 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Sun Jan 12 13:09:04 2025 +0100 tdf#161412 - UI: fix warning in PDF password dialog didn't disappear Warning about "Only Basic Latin characters can be entered" should only be highlighted until we are entering non-ASCII characters into the password textbox. Change-Id: I87c26a3b0b1777e0e76fe12422027aa2f377ad35 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179891 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tie...@documentfoundation.org> (cherry picked from commit 77fc0018f5a5e6dccdc7125c223f1f6891812b82) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180033 Reviewed-by: Adolfo Jayme Barrientos <fit...@ubuntu.com> diff --git a/sfx2/source/dialog/passwd.cxx b/sfx2/source/dialog/passwd.cxx index 79bb50a51276..a98c8adbc39e 100644 --- a/sfx2/source/dialog/passwd.cxx +++ b/sfx2/source/dialog/passwd.cxx @@ -96,6 +96,12 @@ IMPL_LINK(SfxPasswordDialog, InsertTextHdl, OUString&, rTest, bool) // discarded m_xOnlyAsciiFT->set_label_type(weld::LabelType::Warning); } + else + { + // tdf#161412: downgrade from "Warning" to "Normal" if a valid + // letter was discarded after an invalid letter. + m_xOnlyAsciiFT->set_label_type(weld::LabelType::Normal); + } return true; }