summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2018-02-11 23:14:17 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2018-02-11 23:14:53 +0100
commit5174fc8a806c010723c285d5915c15281626a9af (patch)
treeef08203f251ae156965f0ccc26c3339bc21640af /kde-apps
parentapp-emulation/nemu: add live ebuild. (diff)
downloadgentoo-5174fc8a806c010723c285d5915c15281626a9af.tar.gz
gentoo-5174fc8a806c010723c285d5915c15281626a9af.tar.bz2
gentoo-5174fc8a806c010723c285d5915c15281626a9af.zip
kde-apps/akregator: Try to fix feedlist corruption and crashes
Bug: https://bugs.gentoo.org/629548 Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'kde-apps')
-rw-r--r--kde-apps/akregator/akregator-17.12.2.ebuild5
-rw-r--r--kde-apps/akregator/files/akregator-17.12.2-crashfix.patch16
-rw-r--r--kde-apps/akregator/files/akregator-17.12.2-feedlist-corruption.patch17
3 files changed, 38 insertions, 0 deletions
diff --git a/kde-apps/akregator/akregator-17.12.2.ebuild b/kde-apps/akregator/akregator-17.12.2.ebuild
index 861bc0c9dc32..a9886e67a926 100644
--- a/kde-apps/akregator/akregator-17.12.2.ebuild
+++ b/kde-apps/akregator/akregator-17.12.2.ebuild
@@ -53,3 +53,8 @@ DEPEND="${COMMON_DEPEND}
RDEPEND="${COMMON_DEPEND}
!kde-apps/kdepim-l10n
"
+
+PATCHES=(
+ "${FILESDIR}/${P}-crashfix.patch"
+ "${FILESDIR}/${P}-feedlist-corruption.patch"
+)
diff --git a/kde-apps/akregator/files/akregator-17.12.2-crashfix.patch b/kde-apps/akregator/files/akregator-17.12.2-crashfix.patch
new file mode 100644
index 000000000000..c8c872f433bf
--- /dev/null
+++ b/kde-apps/akregator/files/akregator-17.12.2-crashfix.patch
@@ -0,0 +1,16 @@
+diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
+index fd533ecd..2733b273 100644
+--- a/src/mainwindow.cpp
++++ b/src/mainwindow.cpp
+@@ -137,9 +137,7 @@ MainWindow::~MainWindow()
+ void MainWindow::saveProperties(KConfigGroup &config)
+ {
+ if (!m_part) {
+- if (!loadPart()) {
+- return;
+- }
++ return;
+ }
+
+ m_part->saveProperties(config);
+
diff --git a/kde-apps/akregator/files/akregator-17.12.2-feedlist-corruption.patch b/kde-apps/akregator/files/akregator-17.12.2-feedlist-corruption.patch
new file mode 100644
index 000000000000..eefd844460a3
--- /dev/null
+++ b/kde-apps/akregator/files/akregator-17.12.2-feedlist-corruption.patch
@@ -0,0 +1,17 @@
+diff --git a/src/akregator_part.cpp b/src/akregator_part.cpp
+index 94a4e00..3d2d778 100644
+--- a/src/akregator_part.cpp
++++ b/src/akregator_part.cpp
+@@ -514,6 +514,11 @@ void Part::slotSaveFeedList()
+ if (!m_standardListLoaded) {
+ return;
+ }
++
++ QSharedPointer<FeedList> f_list = m_mainWidget->allFeedsList();
++ if (f_list.isNull()) {
++ return;
++ }
+
+ // the first time we overwrite the feed list, we create a backup
+ if (!m_backedUpList) {
+