1 |
commit: 8efe316886bfb5d29b0d4e44677a0538b0601487 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 3 23:45:25 2017 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 4 09:50:26 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8efe3168 |
7 |
|
8 |
app-office/calligra: Drop old |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
app-office/calligra/Manifest | 1 - |
13 |
app-office/calligra/calligra-3.0.0-r1.ebuild | 248 --------------------- |
14 |
.../calligra/files/calligra-3.0.0-plan-crash.patch | 199 ----------------- |
15 |
.../files/calligra-3.0.0-words-crash.patch | 75 ------- |
16 |
4 files changed, 523 deletions(-) |
17 |
|
18 |
diff --git a/app-office/calligra/Manifest b/app-office/calligra/Manifest |
19 |
index bf287c4..94b1450 100644 |
20 |
--- a/app-office/calligra/Manifest |
21 |
+++ b/app-office/calligra/Manifest |
22 |
@@ -1,3 +1,2 @@ |
23 |
DIST calligra-2.9.11.tar.xz 196039892 SHA256 b18d2d0f87bc92753ec8b1eb780a596770a49141e3e60d811da51e752e54ea09 SHA512 69fbb38dbc3d59a744ed1fae5361f61bde15da298d28942f226d3d99d399a95f5ee67cca755996290c65943aa9babf6367c44f0d0199dacce22a9879346f82f8 WHIRLPOOL 973a17eb639ddfaa5a913b064c90957935ded7fe3fdb5237c27112b6686b3dbe3e411c168f920947ef98c4a3d951842220f849565503fac67ebe75784f339e74 |
24 |
DIST calligra-3.0.0.1.tar.xz 61111072 SHA256 dedc51efc42f7dda37514d450cb772d9db37a658e0abbcf0f513712a04c1f011 SHA512 826495dfa843f51ecb1139ca8d6d19f6a3fd49e4ca186b4c6a5d1498cdecbfb38461a871153bf8b9944e729725e50918434849acc78c375591636d06ef5d5f6a WHIRLPOOL 085be69fbc32fe54b567e81727aaed7bf613d8c6f2fc9d6eaaac3348e5a4e116278b6da86be953d7d17ea8854dc94021c11c81eb29d8c9a68c517b31457d2242 |
25 |
-DIST calligra-3.0.0.tar.gz 131474815 SHA256 79490a61e876767cb10c9605f48104c3d8b91f76a607424d14ec4c73c0eff0b2 SHA512 8bf93e1fd2b6d152c046c36c1386610d6607dd7846fd86a1d33bcf1d6bee9623c71b5eeb676ac272c8d8fc3843ce2681af2ba00e97a47e759b293aa58e73d5ca WHIRLPOOL 3ffdc9c0ddc868c2e6632c47cbd9028c0212b293ec9317627757403873f2d84978d0e5a04675bf1d864f583ad40d0543657721d6b1ac3b4c80f8526f78c47e78 |
26 |
|
27 |
diff --git a/app-office/calligra/calligra-3.0.0-r1.ebuild b/app-office/calligra/calligra-3.0.0-r1.ebuild |
28 |
deleted file mode 100644 |
29 |
index a7247a7..00000000 |
30 |
--- a/app-office/calligra/calligra-3.0.0-r1.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,248 +0,0 @@ |
33 |
-# Copyright 1999-2016 Gentoo Foundation |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
-# $Id$ |
36 |
- |
37 |
-EAPI=6 |
38 |
- |
39 |
-CHECKREQS_DISK_BUILD="4G" |
40 |
-KDE_HANDBOOK="forceoptional" |
41 |
-KDE_TEST="forceoptional" |
42 |
-inherit check-reqs kde5 versionator |
43 |
- |
44 |
-DESCRIPTION="KDE Office Suite" |
45 |
-HOMEPAGE="http://www.calligra.org/" |
46 |
- |
47 |
-case ${PV} in |
48 |
- 3.[0123456789].[789]?) |
49 |
- # beta or rc releases |
50 |
- SRC_URI="mirror://kde/unstable/${P}/${P}.tar.gz" ;; |
51 |
- 3.[0123456789].?) |
52 |
- # stable releases |
53 |
- SRC_URI="mirror://kde/stable/${P}/${P}.tar.gz" |
54 |
-esac |
55 |
- |
56 |
-LICENSE="GPL-2" |
57 |
- |
58 |
-[[ ${KDE_BUILD_TYPE} == release ]] && \ |
59 |
-KEYWORDS="~amd64 ~x86" |
60 |
- |
61 |
-CAL_FTS=( karbon plan sheets words ) |
62 |
-CAL_EXP_FTS=( braindump stage ) |
63 |
- |
64 |
-IUSE="activities +crypt +eigen +fontconfig gsl import-filter +lcms pim marble okular |
65 |
- openexr +pdf spacenav +truetype vc +xml X $(printf 'calligra_features_%s ' ${CAL_FTS[@]}) |
66 |
- $(printf 'calligra_experimental_features_%s ' ${CAL_EXP_FTS[@]})" |
67 |
- |
68 |
-REQUIRED_USE="calligra_features_sheets? ( eigen )" |
69 |
- |
70 |
-# TODO: Not packaged: Cauchy (https://bitbucket.org/cyrille/cauchy) |
71 |
-# Required for the matlab/octave formula tool |
72 |
-# drop qtcore subslot operator when QT_MINIMAL >= 5.7.0 |
73 |
-COMMON_DEPEND=" |
74 |
- $(add_frameworks_dep karchive) |
75 |
- $(add_frameworks_dep kcmutils) |
76 |
- $(add_frameworks_dep kcodecs) |
77 |
- $(add_frameworks_dep kcompletion) |
78 |
- $(add_frameworks_dep kconfig) |
79 |
- $(add_frameworks_dep kconfigwidgets) |
80 |
- $(add_frameworks_dep kcoreaddons) |
81 |
- $(add_frameworks_dep kdelibs4support) |
82 |
- $(add_frameworks_dep kemoticons) |
83 |
- $(add_frameworks_dep kglobalaccel) |
84 |
- $(add_frameworks_dep kguiaddons) |
85 |
- $(add_frameworks_dep ki18n) |
86 |
- $(add_frameworks_dep kiconthemes) |
87 |
- $(add_frameworks_dep kio) |
88 |
- $(add_frameworks_dep kitemmodels) |
89 |
- $(add_frameworks_dep kitemviews) |
90 |
- $(add_frameworks_dep knotifications) |
91 |
- $(add_frameworks_dep knotifyconfig) |
92 |
- $(add_frameworks_dep kparts) |
93 |
- $(add_frameworks_dep kross) |
94 |
- $(add_frameworks_dep ktexteditor) |
95 |
- $(add_frameworks_dep ktextwidgets) |
96 |
- $(add_frameworks_dep kwallet) |
97 |
- $(add_frameworks_dep kwidgetsaddons) |
98 |
- $(add_frameworks_dep kwindowsystem) |
99 |
- $(add_frameworks_dep kxmlgui) |
100 |
- $(add_frameworks_dep sonnet) |
101 |
- $(add_frameworks_dep threadweaver) |
102 |
- $(add_qt_dep designer) |
103 |
- $(add_qt_dep qtconcurrent) |
104 |
- $(add_qt_dep qtdbus) |
105 |
- $(add_qt_dep qtdeclarative) |
106 |
- $(add_qt_dep qtgui) |
107 |
- $(add_qt_dep qtnetwork) |
108 |
- $(add_qt_dep qtprintsupport) |
109 |
- $(add_qt_dep qtscript) |
110 |
- $(add_qt_dep qtsvg) |
111 |
- $(add_qt_dep qtwidgets) |
112 |
- $(add_qt_dep qtxml) |
113 |
- dev-lang/perl |
114 |
- dev-libs/boost |
115 |
- media-libs/libpng:0 |
116 |
- sys-libs/zlib |
117 |
- virtual/libiconv |
118 |
- activities? ( $(add_frameworks_dep kactivities) ) |
119 |
- crypt? ( app-crypt/qca:2[qt5] ) |
120 |
- eigen? ( dev-cpp/eigen:3 ) |
121 |
- fontconfig? ( media-libs/fontconfig ) |
122 |
- gsl? ( sci-libs/gsl ) |
123 |
- import-filter? ( |
124 |
- $(add_frameworks_dep khtml) |
125 |
- app-text/libetonyek |
126 |
- app-text/libodfgen |
127 |
- app-text/libwpd:* |
128 |
- app-text/libwpg:* |
129 |
- >=app-text/libwps-0.4 |
130 |
- dev-libs/librevenge |
131 |
- media-libs/libvisio |
132 |
- ) |
133 |
- lcms? ( media-libs/lcms:2 ) |
134 |
- marble? ( $(add_kdeapps_dep marble) ) |
135 |
- openexr? ( media-libs/openexr ) |
136 |
- pdf? ( app-text/poppler:=[qt5] ) |
137 |
- spacenav? ( dev-libs/libspnav ) |
138 |
- truetype? ( media-libs/freetype:2 ) |
139 |
- X? ( |
140 |
- $(add_qt_dep qtx11extras) |
141 |
- x11-libs/libX11 |
142 |
- ) |
143 |
- calligra_experimental_features_braindump? ( $(add_qt_dep qtwebkit) ) |
144 |
- calligra_experimental_features_stage? ( |
145 |
- $(add_qt_dep qtwebkit) |
146 |
- okular? ( $(add_kdeapps_dep okular) ) |
147 |
- ) |
148 |
- calligra_features_plan? ( |
149 |
- $(add_frameworks_dep khtml) |
150 |
- $(add_qt_dep qtcore '' '' '5=') |
151 |
- dev-libs/kdiagram:5 |
152 |
- dev-libs/kproperty:5 |
153 |
- dev-libs/kreport:5 |
154 |
- pim? ( |
155 |
- $(add_kdeapps_dep akonadi) |
156 |
- $(add_kdeapps_dep akonadi-contacts) |
157 |
- $(add_kdeapps_dep kcalcore) |
158 |
- $(add_kdeapps_dep kcontacts) |
159 |
- ) |
160 |
- ) |
161 |
- calligra_features_words? ( |
162 |
- dev-libs/libxslt |
163 |
- okular? ( $(add_kdeapps_dep okular) ) |
164 |
- ) |
165 |
-" |
166 |
-DEPEND="${COMMON_DEPEND} |
167 |
- sys-devel/gettext |
168 |
- x11-misc/shared-mime-info |
169 |
- vc? ( >=dev-libs/vc-1.1.0 ) |
170 |
-" |
171 |
-RDEPEND="${COMMON_DEPEND} |
172 |
- calligra_features_karbon? ( media-gfx/pstoedit[plotutils] ) |
173 |
- !app-office/calligra:4 |
174 |
-" |
175 |
-RESTRICT+=" test" |
176 |
- |
177 |
-PATCHES=( |
178 |
- "${FILESDIR}/${P}-no-arch-detection.patch" |
179 |
- "${FILESDIR}/${P}-optionaldeps.patch" |
180 |
- "${FILESDIR}/${P}-words-crash.patch" |
181 |
- "${FILESDIR}/${P}-plan-crash.patch" |
182 |
-) |
183 |
- |
184 |
-pkg_pretend() { |
185 |
- check-reqs_pkg_pretend |
186 |
-} |
187 |
- |
188 |
-pkg_setup() { |
189 |
- kde5_pkg_setup |
190 |
- check-reqs_pkg_setup |
191 |
-} |
192 |
- |
193 |
-src_prepare() { |
194 |
- kde5_src_prepare |
195 |
- |
196 |
- # Unconditionally disable deprecated deps (required by QtQuick1) |
197 |
- punt_bogus_dep Qt5 Declarative |
198 |
- punt_bogus_dep Qt5 OpenGL |
199 |
- |
200 |
- if ! use calligra_experimental_features_stage && \ |
201 |
- ! use calligra_experimental_features_braindump; then |
202 |
- punt_bogus_dep Qt5 WebKitWidgets |
203 |
- punt_bogus_dep Qt5 WebKit |
204 |
- fi |
205 |
- |
206 |
- # Hack around the excessive use of CMake macros |
207 |
- if use okular && ! use calligra_features_words; then |
208 |
- sed -i -e "/add_subdirectory( *okularodtgenerator *)/ s/^/#DONT/" \ |
209 |
- extras/CMakeLists.txt || die "Failed to disable OKULAR_GENERATOR_ODT" |
210 |
- fi |
211 |
- |
212 |
- if use okular && ! use calligra_experimental_features_stage; then |
213 |
- sed -i -e "/add_subdirectory( *okularodpgenerator *)/ s/^/#DONT/" \ |
214 |
- extras/CMakeLists.txt || die "Failed to disable OKULAR_GENERATOR_ODP" |
215 |
- fi |
216 |
- |
217 |
- rm -f po/*/*kexi*po || die |
218 |
- rm -f po/*/*krita*po || die |
219 |
-} |
220 |
- |
221 |
-src_configure() { |
222 |
- local cal_ft myproducts experimental=OFF |
223 |
- |
224 |
- # applications |
225 |
- for cal_ft in ${CAL_FTS[@]}; do |
226 |
- if use calligra_features_${cal_ft} ; then |
227 |
- myproducts+=( "${cal_ft^^}" ) |
228 |
- fi |
229 |
- done |
230 |
- # experimental/unmaintained applications |
231 |
- for cal_ft in ${CAL_EXP_FTS[@]}; do |
232 |
- if use calligra_experimental_features_${cal_ft} ; then |
233 |
- experimental=ON |
234 |
- myproducts+=( "${cal_ft^^}" ) |
235 |
- fi |
236 |
- done |
237 |
- |
238 |
- local mycmakeargs=( -DPRODUCTSET="${myproducts[*]}" ) |
239 |
- |
240 |
- if [[ ${KDE_BUILD_TYPE} == release ]] ; then |
241 |
- mycmakeargs+=( |
242 |
- -DRELEASE_BUILD=ON |
243 |
- -DBUILD_UNMAINTAINED=${experimental} |
244 |
- ) |
245 |
- fi |
246 |
- |
247 |
- mycmakeargs+=( |
248 |
- -DPACKAGERS_BUILD=OFF |
249 |
- -DWITH_Iconv=ON |
250 |
- $(cmake-utils_use_find_package activities KF5Activities) |
251 |
- -DWITH_Qca-qt5=$(usex crypt) |
252 |
- -DWITH_Eigen3=$(usex eigen) |
253 |
- -DWITH_Fontconfig=$(usex fontconfig) |
254 |
- -DWITH_GSL=$(usex gsl) |
255 |
- -DWITH_LibEtonyek=$(usex import-filter) |
256 |
- -DWITH_LibOdfGen=$(usex import-filter) |
257 |
- -DWITH_LibRevenge=$(usex import-filter) |
258 |
- -DWITH_LibVisio=$(usex import-filter) |
259 |
- -DWITH_LibWpd=$(usex import-filter) |
260 |
- -DWITH_LibWpg=$(usex import-filter) |
261 |
- -DWITH_LibWps=$(usex import-filter) |
262 |
- $(cmake-utils_use_find_package pim KF5Akonadi) |
263 |
- $(cmake-utils_use_find_package pim KF5AkonadiContact) |
264 |
- $(cmake-utils_use_find_package pim KF5CalendarCore) |
265 |
- $(cmake-utils_use_find_package pim KF5Contacts) |
266 |
- -DWITH_LCMS2=$(usex lcms) |
267 |
- $(cmake-utils_use_find_package marble Marble) |
268 |
- -DWITH_Okular5=$(usex okular) |
269 |
- -DWITH_OpenEXR=$(usex openexr) |
270 |
- -DWITH_Poppler=$(usex pdf) |
271 |
- $(cmake-utils_use_find_package spacenav Spnav) |
272 |
- -ENABLE_CSTESTER_TESTING=$(usex test) |
273 |
- -DWITH_Freetype=$(usex truetype) |
274 |
- -DWITH_Vc=$(usex vc) |
275 |
- -DCMAKE_DISABLE_FIND_PACKAGE_Libgit2=ON |
276 |
- -DCMAKE_DISABLE_FIND_PACKAGE_Libqgit2=ON |
277 |
- ) |
278 |
- |
279 |
- kde5_src_configure |
280 |
-} |
281 |
|
282 |
diff --git a/app-office/calligra/files/calligra-3.0.0-plan-crash.patch b/app-office/calligra/files/calligra-3.0.0-plan-crash.patch |
283 |
deleted file mode 100644 |
284 |
index 3e1073f..00000000 |
285 |
--- a/app-office/calligra/files/calligra-3.0.0-plan-crash.patch |
286 |
+++ /dev/null |
287 |
@@ -1,199 +0,0 @@ |
288 |
-From dd2cb16ab43d21ee25ba6ebfb36cd68ec9879c4f Mon Sep 17 00:00:00 2001 |
289 |
-From: Dag Andersen <danders@×××××××.dk> |
290 |
-Date: Mon, 12 Dec 2016 10:07:38 +0100 |
291 |
-Subject: Plan: Fix crash on close |
292 |
- |
293 |
-Due to accessing project node during delete |
294 |
- |
295 |
-BUG: 373527 |
296 |
-FIXED-IN: 3.0.0 |
297 |
---- |
298 |
- plan/libs/kernel/kptnode.cpp | 14 ++++++++++++-- |
299 |
- plan/libs/kernel/kptnode.h | 5 ++++- |
300 |
- plan/libs/kernel/kptproject.cpp | 11 ++++++++++- |
301 |
- plan/libs/kernel/kptresource.cpp | 20 ++++++++++++++++---- |
302 |
- plan/libs/kernel/kptresource.h | 7 ++++++- |
303 |
- 5 files changed, 48 insertions(+), 9 deletions(-) |
304 |
- |
305 |
-diff --git a/plan/libs/kernel/kptnode.cpp b/plan/libs/kernel/kptnode.cpp |
306 |
-index d8b0e6b..e55f9ca 100644 |
307 |
---- a/plan/libs/kernel/kptnode.cpp |
308 |
-+++ b/plan/libs/kernel/kptnode.cpp |
309 |
-@@ -40,7 +40,8 @@ namespace KPlato |
310 |
- Node::Node(Node *parent) |
311 |
- : QObject( 0 ), // We don't use qobjects parent |
312 |
- m_nodes(), m_dependChildNodes(), m_dependParentNodes(), |
313 |
-- m_estimate( 0 ) |
314 |
-+ m_estimate( 0 ), |
315 |
-+ m_blockChanged(false) |
316 |
- { |
317 |
- //debugPlan<<"("<<this<<")"; |
318 |
- m_parent = parent; |
319 |
-@@ -53,7 +54,8 @@ Node::Node(const Node &node, Node *parent) |
320 |
- m_nodes(), |
321 |
- m_dependChildNodes(), |
322 |
- m_dependParentNodes(), |
323 |
-- m_estimate( 0 ) |
324 |
-+ m_estimate( 0 ), |
325 |
-+ m_blockChanged(false) |
326 |
- { |
327 |
- //debugPlan<<"("<<this<<")"; |
328 |
- m_parent = parent; |
329 |
-@@ -1225,7 +1227,15 @@ void Node::setRunningAccount(Account *acc) |
330 |
- changed(); |
331 |
- } |
332 |
- |
333 |
-+void Node::blockChanged(bool on) |
334 |
-+{ |
335 |
-+ m_blockChanged = on; |
336 |
-+} |
337 |
-+ |
338 |
- void Node::changed(Node *node, int property) { |
339 |
-+ if (m_blockChanged) { |
340 |
-+ return; |
341 |
-+ } |
342 |
- switch ( property) { |
343 |
- case Type: |
344 |
- case StartupCost: |
345 |
-diff --git a/plan/libs/kernel/kptnode.h b/plan/libs/kernel/kptnode.h |
346 |
-index cfcbd3e..4c98acc 100644 |
347 |
---- a/plan/libs/kernel/kptnode.h |
348 |
-+++ b/plan/libs/kernel/kptnode.h |
349 |
-@@ -528,6 +528,8 @@ public: |
350 |
- virtual void emitDocumentRemoved( Node *node, Document *doc, int idx ); |
351 |
- virtual void emitDocumentChanged( Node *node, Document *doc, int idx ); |
352 |
- |
353 |
-+ void blockChanged(bool on = true); |
354 |
-+ |
355 |
- public: |
356 |
- // These shouldn't be available to other than those who inherits |
357 |
- /// Calculate the critical path |
358 |
-@@ -673,7 +675,8 @@ protected: |
359 |
- ResourceRequestCollection m_requests; |
360 |
- |
361 |
- private: |
362 |
-- void init(); |
363 |
-+ void init(); |
364 |
-+ bool m_blockChanged; |
365 |
- }; |
366 |
- |
367 |
- //////////////////////////////// Estimate //////////////////////////////// |
368 |
-diff --git a/plan/libs/kernel/kptproject.cpp b/plan/libs/kernel/kptproject.cpp |
369 |
-index 30cd450..d2fafb5 100644 |
370 |
---- a/plan/libs/kernel/kptproject.cpp |
371 |
-+++ b/plan/libs/kernel/kptproject.cpp |
372 |
-@@ -94,7 +94,16 @@ void Project::deref() |
373 |
- Project::~Project() |
374 |
- { |
375 |
- debugPlan; |
376 |
-- disconnect(); // NOTE: may be a problem if somebody uses the destroyd() signal |
377 |
-+ disconnect(); |
378 |
-+ for(Node *n : nodeIdDict) { |
379 |
-+ n->blockChanged(); |
380 |
-+ } |
381 |
-+ for (Resource *r : resourceIdDict) { |
382 |
-+ r->blockChanged(); |
383 |
-+ } |
384 |
-+ for (ResourceGroup *g : resourceGroupIdDict) { |
385 |
-+ g->blockChanged(); |
386 |
-+ } |
387 |
- delete m_standardWorktime; |
388 |
- while ( !m_resourceGroups.isEmpty() ) |
389 |
- delete m_resourceGroups.takeFirst(); |
390 |
-diff --git a/plan/libs/kernel/kptresource.cpp b/plan/libs/kernel/kptresource.cpp |
391 |
-index 8a3d55e..b32d4e7 100644 |
392 |
---- a/plan/libs/kernel/kptresource.cpp |
393 |
-+++ b/plan/libs/kernel/kptresource.cpp |
394 |
-@@ -44,7 +44,8 @@ namespace KPlato |
395 |
- { |
396 |
- |
397 |
- ResourceGroup::ResourceGroup() |
398 |
-- : QObject( 0 ) |
399 |
-+ : QObject( 0 ), |
400 |
-+ m_blockChanged(false) |
401 |
- { |
402 |
- m_project = 0; |
403 |
- m_type = Type_Work; |
404 |
-@@ -80,8 +81,13 @@ void ResourceGroup::copy( const ResourceGroup *group ) |
405 |
- m_name = group->m_name; |
406 |
- } |
407 |
- |
408 |
-+void ResourceGroup::blockChanged(bool on) |
409 |
-+{ |
410 |
-+ m_blockChanged = on; |
411 |
-+} |
412 |
-+ |
413 |
- void ResourceGroup::changed() { |
414 |
-- if ( m_project ) { |
415 |
-+ if (m_project && !m_blockChanged) { |
416 |
- m_project->changed( this ); |
417 |
- } |
418 |
- } |
419 |
-@@ -319,7 +325,8 @@ Resource::Resource() |
420 |
- m_project(0), |
421 |
- m_parent( 0 ), |
422 |
- m_autoAllocate( false ), |
423 |
-- m_currentSchedule( 0 ) |
424 |
-+ m_currentSchedule( 0 ), |
425 |
-+ m_blockChanged(false) |
426 |
- { |
427 |
- m_type = Type_Work; |
428 |
- m_units = 100; // % |
429 |
-@@ -409,9 +416,14 @@ void Resource::copy(Resource *resource) { |
430 |
- //m_externalNames = resource->m_externalNames; |
431 |
- } |
432 |
- |
433 |
-+void Resource::blockChanged(bool on) |
434 |
-+{ |
435 |
-+ m_blockChanged = on; |
436 |
-+} |
437 |
-+ |
438 |
- void Resource::changed() |
439 |
- { |
440 |
-- if ( m_project ) { |
441 |
-+ if (m_project && !m_blockChanged) { |
442 |
- m_project->changed( this ); |
443 |
- } |
444 |
- } |
445 |
-diff --git a/plan/libs/kernel/kptresource.h b/plan/libs/kernel/kptresource.h |
446 |
-index 10f6b92..fba020a 100644 |
447 |
---- a/plan/libs/kernel/kptresource.h |
448 |
-+++ b/plan/libs/kernel/kptresource.h |
449 |
-@@ -177,6 +177,8 @@ public: |
450 |
- DateTime startTime( long id ) const; |
451 |
- DateTime endTime( long id ) const; |
452 |
- |
453 |
-+ void blockChanged(bool on = true); |
454 |
-+ |
455 |
- #ifndef NDEBUG |
456 |
- |
457 |
- void printDebug( const QString& ident ); |
458 |
-@@ -199,7 +201,7 @@ private: |
459 |
- Type m_type; |
460 |
- |
461 |
- QList<ResourceGroupRequest*> m_requests; |
462 |
-- |
463 |
-+ bool m_blockChanged; |
464 |
- }; |
465 |
- |
466 |
- /** |
467 |
-@@ -492,6 +494,8 @@ public: |
468 |
- /// Set the @p account |
469 |
- void setAccount( Account *account ); |
470 |
- |
471 |
-+ void blockChanged(bool on = true); |
472 |
-+ |
473 |
- // for xml loading code |
474 |
- |
475 |
- class WorkInfoCache |
476 |
-@@ -564,6 +568,7 @@ private: |
477 |
- |
478 |
- // return this if resource has no calendar and is a material resource |
479 |
- Calendar m_materialCalendar; |
480 |
-+ bool m_blockChanged; |
481 |
- |
482 |
- #ifndef NDEBUG |
483 |
- public: |
484 |
--- |
485 |
-cgit v0.11.2 |
486 |
- |
487 |
|
488 |
diff --git a/app-office/calligra/files/calligra-3.0.0-words-crash.patch b/app-office/calligra/files/calligra-3.0.0-words-crash.patch |
489 |
deleted file mode 100644 |
490 |
index 4fe9283..00000000 |
491 |
--- a/app-office/calligra/files/calligra-3.0.0-words-crash.patch |
492 |
+++ /dev/null |
493 |
@@ -1,75 +0,0 @@ |
494 |
-From 2d86293939bafd80bc320849ffcc7544350fc2bf Mon Sep 17 00:00:00 2001 |
495 |
-From: Dag Andersen <danders@×××××××.dk> |
496 |
-Date: Fri, 9 Dec 2016 11:19:36 +0100 |
497 |
-Subject: Words: Fix crash when adding connected text frame |
498 |
- |
499 |
-Summary: |
500 |
-KWFrameConnectSelector crashes you activate existsingRadio button but do not select a frameset. |
501 |
-This patch selects a frameset if none is selected. |
502 |
- |
503 |
-Reviewers: boemann |
504 |
- |
505 |
-Reviewed By: boemann |
506 |
- |
507 |
-Tags: #kexi, #calligra:_3.0 |
508 |
- |
509 |
-Differential Revision: https://phabricator.kde.org/D3632 |
510 |
---- |
511 |
- words/part/dialogs/KWFrameConnectSelector.cpp | 14 ++++++++++++++ |
512 |
- words/part/dialogs/KWFrameConnectSelector.h | 1 + |
513 |
- 2 files changed, 15 insertions(+) |
514 |
- |
515 |
-diff --git a/words/part/dialogs/KWFrameConnectSelector.cpp b/words/part/dialogs/KWFrameConnectSelector.cpp |
516 |
-index 566dfe2..590d3b7 100644 |
517 |
---- a/words/part/dialogs/KWFrameConnectSelector.cpp |
518 |
-+++ b/words/part/dialogs/KWFrameConnectSelector.cpp |
519 |
-@@ -21,6 +21,7 @@ |
520 |
- #include "KWDocument.h" |
521 |
- #include "frames/KWTextFrameSet.h" |
522 |
- #include "Words.h" |
523 |
-+#include "WordsDebug.h" |
524 |
- |
525 |
- KWFrameConnectSelector::KWFrameConnectSelector(FrameConfigSharedState *state) |
526 |
- : m_state(state), |
527 |
-@@ -30,6 +31,8 @@ KWFrameConnectSelector::KWFrameConnectSelector(FrameConfigSharedState *state) |
528 |
- |
529 |
- connect(widget.framesList, SIGNAL(itemClicked(QTreeWidgetItem*,int)), |
530 |
- this, SLOT(frameSetSelected())); |
531 |
-+ connect(widget.existingRadio, SIGNAL(clicked(bool)), |
532 |
-+ this, SLOT(existingRadioClicked(bool))); |
533 |
- connect(widget.frameSetName, SIGNAL(textChanged(QString)), |
534 |
- this, SLOT(nameChanged(QString))); |
535 |
- } |
536 |
-@@ -50,6 +53,17 @@ bool KWFrameConnectSelector::canOpen(KoShape *shape) |
537 |
- return true; |
538 |
- } |
539 |
- |
540 |
-+void KWFrameConnectSelector::existingRadioClicked(bool on) |
541 |
-+{ |
542 |
-+ // make sure there is a selcted frameset |
543 |
-+ if (on && !widget.framesList->currentItem() && widget.framesList->model()->rowCount() > 0) { |
544 |
-+ QModelIndex curr = widget.framesList->model()->index(0, 0); |
545 |
-+ widget.framesList->setCurrentIndex(curr); |
546 |
-+ widget.framesList->selectionModel()->select(curr, QItemSelectionModel::Select); |
547 |
-+ } |
548 |
-+ debugWords<<Q_FUNC_INFO<<on<<widget.framesList->currentItem(); |
549 |
-+} |
550 |
-+ |
551 |
- void KWFrameConnectSelector::frameSetSelected() |
552 |
- { |
553 |
- widget.existingRadio->setChecked(true); |
554 |
-diff --git a/words/part/dialogs/KWFrameConnectSelector.h b/words/part/dialogs/KWFrameConnectSelector.h |
555 |
-index 74d3f0d..75ec1613 100644 |
556 |
---- a/words/part/dialogs/KWFrameConnectSelector.h |
557 |
-+++ b/words/part/dialogs/KWFrameConnectSelector.h |
558 |
-@@ -50,6 +50,7 @@ public: |
559 |
- } |
560 |
- |
561 |
- private Q_SLOTS: |
562 |
-+ void existingRadioClicked(bool on); |
563 |
- void frameSetSelected(); |
564 |
- void nameChanged(const QString &text); |
565 |
- |
566 |
--- |
567 |
-cgit v0.11.2 |
568 |
- |