sfx2/source/dialog/passwd.cxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 77fc0018f5a5e6dccdc7125c223f1f6891812b82
Author:     Balazs Varga <balazs.varga.ext...@allotropia.de>
AuthorDate: Tue Jan 7 14:59:57 2025 +0100
Commit:     Balazs Varga <balazs.varga.ext...@allotropia.de>
CommitDate: Thu Jan 9 19:51:38 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>

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;
 }

Reply via email to