From d5c05c972e4345e6865c0ca60a591e4864b752a7 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Aug 12 2008 13:31:40 +0000 Subject: update all the configuration each time a document is open in okular --- diff --git a/kdegraphics-4.1.0-update-configuration.patch b/kdegraphics-4.1.0-update-configuration.patch new file mode 100644 index 0000000..50d7aa1 --- /dev/null +++ b/kdegraphics-4.1.0-update-configuration.patch @@ -0,0 +1,21 @@ +--- kdegraphics-4.1.0/okular/generators/poppler/generator_pdf.cpp (Revision 841347) ++++ kdegraphics-4.1.0/okular/generators/poppler/generator_pdf.cpp (Revision 841348) +@@ -261,8 +261,6 @@ + setFeature( FontInfo ); + setFeature( PrintPostscript ); + setFeature( ReadRawData ); +- // update the configuration +- reparseConfig(); + // generate the pixmapGeneratorThread + generatorThread = new PDFPixmapGeneratorThread( this ); + connect(generatorThread, SIGNAL(finished()), this, SLOT(threadFinished()), Qt::QueuedConnection); +@@ -392,7 +390,8 @@ + + loadPages(pagesVector, 0, false); + +- setAAOptions(); ++ // update the configuration ++ reparseConfig(); + + // the file has been loaded correctly + return true; diff --git a/kdegraphics.spec b/kdegraphics.spec index 824900b..771c1d3 100644 --- a/kdegraphics.spec +++ b/kdegraphics.spec @@ -16,6 +16,7 @@ License: GPLv2 URL: http://www.kde.org/ Source0: ftp://ftp.kde.org/pub/kde/unstable/%{version}/src/kdegraphics-%{version}.tar.bz2 Patch100: kdegraphics-4.1.0-printing-review-crash.patch +Patch101: kdegraphics-4.1.0-update-configuration.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: kde-filesystem >= 4 @@ -95,6 +96,7 @@ Conflicts: libkexiv2-devel libkdcraw-devel libkipi-devel # upstream patches %patch100 -p1 -b .printing-review-crash +%patch101 -p1 -b .update-configuration %build @@ -188,6 +190,7 @@ rm -rf %{buildroot} %changelog * Tue Aug 12 2008 Than Ngo 4.1.0-4 - fix crash in printing review in okular +- update all the configuration each time a document is open in okular * Tue Jul 29 2008 Than Ngo 4.1.0-3 - respun