diff --git a/textproc/kf6-syntax-highlighting/Makefile b/textproc/kf6-syntax-highlighting/Makefile index d03136496aa6..c4efa9fa28e4 100644 --- a/textproc/kf6-syntax-highlighting/Makefile +++ b/textproc/kf6-syntax-highlighting/Makefile @@ -1,14 +1,15 @@ PORTNAME= syntax-highlighting DISTVERSION= ${KDE_FRAMEWORKS_VERSION} +PORTREVISION= 1 CATEGORIES= textproc kde kde-frameworks MAINTAINER= kde@FreeBSD.org COMMENT= Syntax highlighting engine for Kate syntax definitions USES= cmake gl kde:6 perl5 python:build qt:6 tar:xz USE_GL= gl opengl USE_KDE= ecm:build USE_PERL5= build USE_QT= base declarative tools:build .include diff --git a/textproc/kf6-syntax-highlighting/files/patch-git9ba26980 b/textproc/kf6-syntax-highlighting/files/patch-git9ba26980 new file mode 100644 index 000000000000..fbd6fe729496 --- /dev/null +++ b/textproc/kf6-syntax-highlighting/files/patch-git9ba26980 @@ -0,0 +1,22 @@ +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();