Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Jul 2020 05:54:30 +0000 (UTC)
From:      =?UTF-8?Q?Fernando_Apestegu=c3=ada?= <fernape@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r541840 - in head/textproc/sigil: . files
Message-ID:  <202007100554.06A5sU40083942@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: fernape
Date: Fri Jul 10 05:54:30 2020
New Revision: 541840
URL: https://svnweb.freebsd.org/changeset/ports/541840

Log:
  textproc/sigil: Fix Preview Mode with Qt5.15
  
  Fix the preview panel on the right due to a behavioral change in Qt5.15
  
  PR:	247864
  Submitted by:	jonc@chen.org.nz (maintainer)

Added:
  head/textproc/sigil/files/
  head/textproc/sigil/files/patch-local-content   (contents, props changed)
Modified:
  head/textproc/sigil/Makefile

Modified: head/textproc/sigil/Makefile
==============================================================================
--- head/textproc/sigil/Makefile	Fri Jul 10 05:51:45 2020	(r541839)
+++ head/textproc/sigil/Makefile	Fri Jul 10 05:54:30 2020	(r541840)
@@ -3,6 +3,7 @@
 
 PORTNAME=	sigil
 PORTVERSION=	1.2.1
+PORTREVISION=	1
 CATEGORIES=	textproc
 
 MAINTAINER=	jonc@chen.org.nz
@@ -27,14 +28,14 @@ USE_GITHUB=	yes
 GH_ACCOUNT=	Sigil-Ebook
 GH_PROJECT=	Sigil
 
+USE_LDCONFIG=	${PREFIX}/lib/sigil
+
 USE_QT=		concurrent core declarative gui location network printsupport \
 		svg webchannel webengine widgets xml xmlpatterns \
 		buildtools_build linguisttools_build qmake_build \
 		imageformats_run
 
 CMAKE_ARGS=	-DUSE_SYSTEM_LIBS:BOOL=1
-
-USE_LDCONFIG=	${PREFIX}/lib/sigil
 
 # Upstream uses pkg-config output to pass libhunspell-1.7.so and
 # libpcre16.so to the linker. pkg-config output does not include full

Added: head/textproc/sigil/files/patch-local-content
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/sigil/files/patch-local-content	Fri Jul 10 05:54:30 2020	(r541840)
@@ -0,0 +1,12 @@
+diff -ruN ../Sigil-1.2.1/src/MainUI/MainWindow.cpp ./src/MainUI/MainWindow.cpp
+--- ../Sigil-1.2.1/src/MainUI/MainWindow.cpp	2020-03-30 09:54:01.000000000 +1300
++++ ./src/MainUI/MainWindow.cpp	2020-07-09 15:23:47.027951000 +1200
+@@ -4277,7 +4277,7 @@
+     web_settings->setAttribute(QWebEngineSettings::JavascriptCanOpenWindows, false);
+     web_settings->setAttribute(QWebEngineSettings::JavascriptCanAccessClipboard, false);
+     web_settings->setAttribute(QWebEngineSettings::LocalContentCanAccessRemoteUrls, (settings.remoteOn() == 1));
+-    web_settings->setAttribute(QWebEngineSettings::LocalContentCanAccessFileUrls, false);
++    web_settings->setAttribute(QWebEngineSettings::LocalContentCanAccessFileUrls, true);
+     web_settings->setAttribute(QWebEngineSettings::PluginsEnabled, false);
+     web_settings->setAttribute(QWebEngineSettings::AutoLoadIconsForPage, false);
+     web_settings->setAttribute(QWebEngineSettings::FocusOnNavigationEnabled, true);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202007100554.06A5sU40083942>