git: 0d22a507c1d7 - main - textproc/crow-translate: Resolve settings dialog issue
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 30 Nov 2023 17:40:23 UTC
The branch main has been updated by ehaupt: URL: https://cgit.FreeBSD.org/ports/commit/?id=0d22a507c1d792fe36b1f987522ac199cf84f527 commit 0d22a507c1d792fe36b1f987522ac199cf84f527 Author: Emanuel Haupt <ehaupt@FreeBSD.org> AuthorDate: 2023-11-30 17:36:54 +0000 Commit: Emanuel Haupt <ehaupt@FreeBSD.org> CommitDate: 2023-11-30 17:36:54 +0000 textproc/crow-translate: Resolve settings dialog issue Fixes an issue where the application core dumps upon pressing the settings icon. Reported by: Ricardo Albarracin B. <ralbab@gmail.com> (via mail) Upstream issue: https://github.com/crow-translate/crow-translate/issues/621 (hijacked) --- textproc/crow-translate/Makefile | 1 + ...ngs_autostartmanager_abstractautostartmanager.cpp | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/textproc/crow-translate/Makefile b/textproc/crow-translate/Makefile index 482017769a44..8a4bf6ef8054 100644 --- a/textproc/crow-translate/Makefile +++ b/textproc/crow-translate/Makefile @@ -1,5 +1,6 @@ PORTNAME= crow-translate PORTVERSION= 2.11.0 +PORTREVISION= 1 CATEGORIES= textproc MAINTAINER= ehaupt@FreeBSD.org diff --git a/textproc/crow-translate/files/patch-src_settings_autostartmanager_abstractautostartmanager.cpp b/textproc/crow-translate/files/patch-src_settings_autostartmanager_abstractautostartmanager.cpp new file mode 100644 index 000000000000..e5912a42d567 --- /dev/null +++ b/textproc/crow-translate/files/patch-src_settings_autostartmanager_abstractautostartmanager.cpp @@ -0,0 +1,20 @@ +--- src/settings/autostartmanager/abstractautostartmanager.cpp.orig 2023-10-14 14:48:26 UTC ++++ src/settings/autostartmanager/abstractautostartmanager.cpp +@@ -18,7 +18,7 @@ + */ + + #include "abstractautostartmanager.h" +-#if defined(Q_OS_LINUX) ++#if defined(Q_OS_LINUX) || defined(Q_OS_UNIX) + #include "portalautostartmanager.h" + #include "unixautostartmanager.h" + #elif defined(Q_OS_DARWIN) +@@ -36,7 +36,7 @@ AbstractAutostartManager *AbstractAutostartManager::cr + + AbstractAutostartManager *AbstractAutostartManager::createAutostartManager(QObject *parent) + { +-#if defined(Q_OS_LINUX) ++#if defined(Q_OS_LINUX) || defined(Q_OS_UNIX) + if (PortalAutostartManager::isAvailable()) + return new PortalAutostartManager(parent); + return new UnixAutostartManager(parent);