From 9ba269803e1baa918b8f0487433c91ea6400894f Mon Sep 17 00:00:00 2001 From: "Friedrich W. H. Kossebau" Date: Sat, 18 Jul 2026 19:49:45 +0200 Subject: [PATCH] Fix listening for language changes, just react on the app instance event QCoreApplication processes also the events for all objects, thus including widgets. So the event filter would also see all the LanguageChange event notification for each of the widgets when the event itself is passed from the toplevel widgets to all the child widgets. --- src/lib/repository.cpp.orig 2026-07-03 11:05:09 UTC +++ src/lib/repository.cpp @@ -441,7 +441,7 @@ bool Repository::eventFilter(QObject *receiver, QEvent bool Repository::eventFilter(QObject *receiver, QEvent *ev) { - if (ev->type() == QEvent::LanguageChange) { + if ((ev->type() == QEvent::LanguageChange) && (receiver == QCoreApplication::instance())) { // definition references remain valid, but sort order by translated name will change // so better be on the safe side here Q_EMIT aboutToReload();