vcl/source/app/salvtables.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit fa3bf4c9f0e8a52d442681d721a21d41dea42bab
Author:     Andras Timar <[email protected]>
AuthorDate: Thu Mar 5 13:39:31 2026 +0100
Commit:     Miklos Vajna <[email protected]>
CommitDate: Fri Mar 6 09:03:38 2026 +0100

    fix crash in SalInstanceEntry::set_message_type on disposed widget
    
    Add isDisposed() check before calling SetControlForeground() on the
    underlying Edit widget, matching the existing pattern in set_text().
    The crash occurs when a JS dialog event arrives for the QuickFindPanel
    search entry after the VCL widget has already been disposed.
    
    Change-Id: Ia2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201029
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Miklos Vajna <[email protected]>

diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
index f435424ec179..97077f0c0ecd 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -3473,6 +3473,8 @@ void set_message_type(Edit* pEntry, 
weld::EntryMessageType eType)
 
 void SalInstanceEntry::set_message_type(weld::EntryMessageType eType)
 {
+    if (m_xEntry->isDisposed())
+        return;
     ::set_message_type(m_xEntry, eType);
 }
 

Reply via email to